PlaywrightEx.Page (PlaywrightEx v0.2.0)
View SourceInteract with a Playwright Page.
There is no official documentation, since this is considered Playwright internal.
References:
Summary
Functions
Returns a screenshot of the page as binary data.
Updates the subscription for page events.
Types
Functions
@spec screenshot(PlaywrightEx.guid(), [screenshot_opt() | PlaywrightEx.unknown_opt()]) :: {:ok, binary()} | {:error, any()}
Returns a screenshot of the page as binary data.
Reference: https://playwright.dev/docs/api/class-page#page-screenshot
Options
:timeout(timeout/0) - Required. Maximum time for the operation (milliseconds).:full_page(boolean/0) - When true, takes a screenshot of the full scrollable page, instead of the currently visible viewport. Defaults tofalse.:omit_background(boolean/0) - Hides default white background and allows capturing screenshots with transparency. Defaults tofalse. Not applicable to jpeg images.
@spec update_subscription(PlaywrightEx.guid(), [ update_subscription_opt() | PlaywrightEx.unknown_opt() ]) :: {:ok, any()} | {:error, any()}
Updates the subscription for page events.
Reference: https://github.com/microsoft/playwright/blob/main/packages/playwright-core/src/client/page.ts