Andrey Lushnikov
8a8076c15b
Rename Page.Events.ConsoleMessageAdded -> Page.Events.ConsoleMessage
...
This patch:
- renames ConsoleMessageAdded into ConsoleMessage for the sake of
clarity
- adds a test to cover basic functionality
2017-05-13 11:05:54 -07:00
Joel Einbinder
2b0d0e6551
Defer evaluation onInitalized
2017-05-12 18:01:17 -07:00
Andrey Lushnikov
52e2633f32
Introduce Page.saveScreenshot
...
Page.saveScreenshot uses filepath to infer screenshot type (either
PNG of JPG) and saves the screenshot to file system.
2017-05-12 10:50:06 -07:00
Andrey Lushnikov
2de672ed1b
Introduce Page.injectFile method
...
With this patch, page has two methods to include javascript:
- Page.addScriptTag(url) which is similar to phantom's includeJs.
- Page.injectFile(filePath) which is similar to phantom's injectJs.
2017-05-12 10:19:01 -07:00
Andrey Lushnikov
e991b0e20a
Implement puppeteer's Page.addScript
2017-05-12 10:01:22 -07:00
Andrey Lushnikov
2cda8c18d1
Puppeteer: staging commit.
2017-05-11 00:06:41 -07:00