mirror of
https://github.com/namibia/awesome-cheatsheets.git
synced 2024-12-19 08:49:45 +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.
|
||||
// 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.
|
||||
|
Loading…
Reference in New Issue
Block a user