From c2e320b3d3b7caf65526f636e7a32bd21ecb99e2 Mon Sep 17 00:00:00 2001 From: Julien Le Coupanec Date: Thu, 19 Mar 2020 14:42:35 +0100 Subject: [PATCH] feat(puppeteer): add worker functions --- tools/puppeteer.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/puppeteer.js b/tools/puppeteer.js index 9d8ddef..477ed23 100644 --- a/tools/puppeteer.js +++ b/tools/puppeteer.js @@ -215,10 +215,10 @@ page.workers() // Returns all o // The events workercreated and workerdestroyed are emitted on the page object to signal the worker lifecycle. // https://pptr.dev/#?product=Puppeteer&version=v2.1.1&show=api-class-worker -worker.evaluate(pageFunction[, ...args]) // -worker.evaluateHandle(pageFunction[, ...args]) // -worker.executionContext() // -worker.url() // +worker.evaluate(pageFunction[, ...args]) // Evaluate a function in the worker context. +worker.evaluateHandle(pageFunction[, ...args]) // Evaluate a function in the worker context and returns in-page object (JSHandle). +worker.executionContext() // Returns ExecutionContext. +worker.url() // Returns worker url. // ACCESSIBILITY // The Accessibility class provides methods for inspecting Chromium's accessibility tree.