diff --git a/tools/puppeteer.js b/tools/puppeteer.js index 133895a..5ef2899 100644 --- a/tools/puppeteer.js +++ b/tools/puppeteer.js @@ -276,7 +276,7 @@ dialog.dismiss() // Resolves when the dialog has been dismissed. dialog.message() // Returns a message displayed in the dialog. dialog.type() // Returns dialog's type, can be one of: alert, beforeunload, confirm or prompt. -// CONSOLE MESSAGEƧ +// CONSOLE MESSAGE // ConsoleMessage objects are dispatched by page via the 'console' event. // https://pptr.dev/#?product=Puppeteer&version=v2.1.1&show=api-class-consolemessage @@ -289,36 +289,36 @@ consoleMessage.type() // Returns message type. // At every point of time, page exposes its current frame tree via the page.mainFrame() and frame.childFrames() methods. // https://pptr.dev/#?product=Puppeteer&version=v2.1.1&show=api-class-frame -frame.$(selector) // -frame.$$(selector) // -frame.$$eval(selector, pageFunction[, ...args]) // -frame.$eval(selector, pageFunction[, ...args]) // -frame.$x(expression) // -frame.addScriptTag(options) // -frame.addStyleTag(options) // -frame.childFrames() // -frame.click(selector[, options]) // -frame.content() // -frame.evaluate(pageFunction[, ...args]) // -frame.evaluateHandle(pageFunction[, ...args]) // -frame.executionContext() // -frame.focus(selector) // -frame.goto(url[, options]) // -frame.hover(selector) // -frame.isDetached() // -frame.name() // -frame.parentFrame() // -frame.select(selector, ...values) // -frame.setContent(html[, options]) // -frame.tap(selector) // -frame.title() // -frame.type(selector, text[, options]) // -frame.url() // -frame.waitFor(selectorOrFunctionOrTimeout[, options[, ...args]]) // -frame.waitForFunction(pageFunction[, options[, ...args]]) // -frame.waitForNavigation([options]) // -frame.waitForSelector(selector[, options]) // -frame.waitForXPath(xpath[, options]) // +frame.$(selector) // The method queries frame for the selector. If there's no such element within the frame, the method will resolve to null. +frame.$$(selector) // The method runs document.querySelectorAll within the frame. If no elements match the selector, the return value resolves to []. +frame.$$eval(selector, pageFunction[, ...args]) // This method runs Array.from(document.querySelectorAll(selector)) within the frame and passes it as the first argument to pageFunction. +frame.$eval(selector, pageFunction[, ...args]) // This method runs document.querySelector within the frame and passes it as the first argument to pageFunction. If there's no element matching selector, the method throws an error. +frame.$x(expression) // The method evaluates the XPath expression. +frame.addScriptTag(options) // Adds a