arnoudbuzing / webtools

A Wolfram Language package which automates interactions with web browsers
Other
33 stars 6 forks source link

Import Source #3

Closed ConstantineSt closed 7 years ago

ConstantineSt commented 7 years ago

It would be great to add a function to import the webpage because some pages can be only accessed after logging in and one can't simply use standard Import function to read the page. I think the most useful would be to get a source of current page. Thank you in advance!

arnoudbuzing commented 7 years ago

@ConstantineSt So you want a snapshot of the current state of the displayed html?

You can do this directly by doing:

JavascriptExecute["return document.getElementsByTagName('html')[0].innerHTML;"]

arnoudbuzing commented 7 years ago

Release 0.0.4 has a new function GetPageHtml which returns the current html for the active page:

https://github.com/arnoudbuzing/WebUnit/releases/tag/v0.0.4