pagesetup

package
v0.8.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 19, 2026 License: MIT Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyServiceWorkersMode

func ApplyServiceWorkersMode(page *rod.Page, mode string) error

ApplyServiceWorkersMode applies the subset of Playwright's contextOptions.serviceWorkers that CDP can honor directly.

func GrantPlaywrightPermissions

func GrantPlaywrightPermissions(browser *rod.Browser, names []string) error

GrantPlaywrightPermissions grants context-wide permissions using CDP. The origin is intentionally omitted to match Playwright config semantics.

func MapPlaywrightPermissions

func MapPlaywrightPermissions(names []string) (mapped []proto.BrowserPermissionType, unsupported []string)

MapPlaywrightPermissions converts Playwright permission names to CDP Browser.grantPermissions values. Unknown permissions are returned so callers can report them instead of silently overclaiming parity.

func PrewarmDomains

func PrewarmDomains(page *rod.Page)

PrewarmDomains enables the CDP domains the engine will need lazily on its first call (Accessibility, DOM, Page lifecycle events). Each enable is idempotent and cheap, so calling this at session start removes the per-domain round-trip from the first extract / navigate / screenshot.

Best-effort: failures are silently ignored — every consumer re-enables the domain it needs anyway.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL