puppeteer/examples
Andrey Lushnikov c3a3bfe1d2 Implement Page.evaluateOnInitilized method
The PhantomJS has a similar callback called onInitialized. This
callback passes control to the automation script when the page
gets initialized.

To precisely implement this functionality atop of puppeteer,
and since puppeteer controller script lives in a separate process to
the page, we need an ability to pause page at the moment of
initialization. For now, we are not able to do this.

However, oftentimes clients want to evaluate certain code in
page at the point of page initialization. This patch implements
this capability with the Page.evaluateOnInitilized method call.

This patch also re-implements phantom's unrandomize.js example
with the puppeteer API. This is serves an illustration purpose
for the page.evaluateOnInitilized callback.
2017-05-12 14:13:40 -07:00
..
colorwheel.js Add colorwheel.js puppeteer example 2017-05-12 11:14:32 -07:00
custom-chromium-revision.js Puppeteer: staging commit. 2017-05-11 00:06:41 -07:00
screenshot.js Update examples/screenshot.js to use Page.saveScreenshot 2017-05-12 11:12:32 -07:00
unrandomize.js Implement Page.evaluateOnInitilized method 2017-05-12 14:13:40 -07:00