From 3983651d8f5cecc6a711f5e4030a92251ac075f6 Mon Sep 17 00:00:00 2001 From: Julien Le Coupanec Date: Fri, 1 May 2020 14:07:22 +0200 Subject: [PATCH] docs(puppeteer): reorganize --- tools/puppeteer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/puppeteer.js b/tools/puppeteer.js index ea907e5..8cd4ae6 100644 --- a/tools/puppeteer.js +++ b/tools/puppeteer.js @@ -150,8 +150,8 @@ page.tracing // returns Tracing page.$(selector) // The method runs document.querySelector within the page. If no element matches the selector, the return value resolves to null. page.$$(selector) // The method runs document.querySelectorAll within the page. If no elements match the selector, the return value resolves to []. -page.$$eval(selector, pageFunction[, ...args]) // This method runs Array.from(document.querySelectorAll(selector)) within the page and passes it as the first argument to pageFunction. page.$eval(selector, pageFunction[, ...args]) // This method runs document.querySelector within the page and passes it as the first argument to pageFunction. If there's no element matching selector, the method throws an error. +page.$$eval(selector, pageFunction[, ...args]) // This method runs Array.from(document.querySelectorAll(selector)) within the page and passes it as the first argument to pageFunction. page.$x(expression) // The method evaluates the XPath expression. page.addScriptTag(options) // Adds a