method-screenshot 321 B

123456789101112
  1. screenshot ([boolean windowSized = false]) : {Promise -> string}
  2. Take a screenshot of the page into a data: URI
  3. Available since 0.6.0
  4. Parameter:
  5. boolean windowSized : Whether the screenshot is limited to the browser window boader (optional)
  6. w.screenshot().then(dataURI => {
  7. w.uri = dataURI;
  8. });
  9. # vim: ts=4 noet ai