I need to save what's already in the DOM, without triggering a reload or re-executing JavaScript. Is this possible? I don't care if a specific browser is required.
The problem is that I have to record the contents of a page that I see after filling in a reCAPTCHA. So, for the sake of argument, I fill in the reCAPTCHA, and I see a table. How do I save that table locally? I don't need any styling or the CSS - just the HTML.
The things I've tried:
'Save As'. If I save as a single web page, I normally get the correct data. However, sometimes I just get a reCAPTCHA challenge instead
View the page source. This always shows the correct page. I can then attempt to save the page source, but I get exactly the same problem as before. Note this answer, which says that this should work, but I agree with the OP that it doesn't (consistently)
View the page source, and copy-and-paste the HTML. This always works, of course, but is too difficult to do for a few hundred pages. Similarly, getting the source from the dev tools is too difficulty (this procedure has to be carried out by a non-technical user)
If I turn on the dev tools in either Firefox or Chrome, there's no network activity for a page save for (1) or (2), so it appears that the browser isn't attempting to re-fetch the page. However, this doesn't really make sense, so I assume it's re-fetching under the hood.