


The hover function is a combination of scrolling and putting the mouse into a hover state over the requested element. Get the title of a page and print it to the console. Gets the text value of an element by using the page.$eval method basics/get_list_of_links.js get text value of an element Scrapes Hacker News for links on the home page and returns the top 10ġ. Gets the value of commonly used HTML form elements using page.$eval() basics/emulate_devices.js get the value of common form elements These are actually shortcuts for calling tUserAgent() and tViewPort().ġ. Use the built in devices descriptors to emulate an Iphone 6. basics/download_upload.js emulate devices basics/alerts.js Download file / upload fileįind an image by class selector, downloads the image, saves it to disk and read it again. alertsĬreate an alert dialog and close it again.ġ. Highlights the basic Puppeteer functions. The very basic on getting useful info from web page. You can run these scripts in the puppeteer sandbox.
