This repository has been archived by the owner on Nov 24, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 574
Add .html method #74
Labels
Comments
Just in case it may be useful until feature lands into master const html = await chromeless
.goto('https://www.github.com')
.wait(5 * 1000)
.evaluate(() => document.documentElement.outerHTML); |
@vladgolubev thanks for the response! One thing I'm thinking all the time is, instead of wait an arbitrary quantity of time, could be possible wait until an DOM event is emitted? Something like const html = await chromeless
.goto('https://www.github.com')
.wait('DOMContentLoaded')
.html() |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hello guys, thanks for sharing this project, it's awesome
Do you think could be more or less easy add an
.html
for output rendered HTML?Example:
The text was updated successfully, but these errors were encountered: