1
1
mirror of https://github.com/namibia/awesome-cheatsheets.git synced 2024-12-22 01:58:54 +00:00

feat(puppeteer): add worker functions

This commit is contained in:
Julien Le Coupanec 2020-03-19 14:42:35 +01:00
parent d514e86e11
commit c2e320b3d3

View File

@ -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.