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:
parent
d514e86e11
commit
c2e320b3d3
@ -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.
|
// 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
|
// https://pptr.dev/#?product=Puppeteer&version=v2.1.1&show=api-class-worker
|
||||||
|
|
||||||
worker.evaluate(pageFunction[, ...args]) //
|
worker.evaluate(pageFunction[, ...args]) // Evaluate a function in the worker context.
|
||||||
worker.evaluateHandle(pageFunction[, ...args]) //
|
worker.evaluateHandle(pageFunction[, ...args]) // Evaluate a function in the worker context and returns in-page object (JSHandle).
|
||||||
worker.executionContext() //
|
worker.executionContext() // Returns ExecutionContext.
|
||||||
worker.url() //
|
worker.url() // Returns worker url.
|
||||||
|
|
||||||
// ACCESSIBILITY
|
// ACCESSIBILITY
|
||||||
// The Accessibility class provides methods for inspecting Chromium's accessibility tree.
|
// The Accessibility class provides methods for inspecting Chromium's accessibility tree.
|
||||||
|
Loading…
Reference in New Issue
Block a user