Page¶
A WWW::Playwright::Page is a single tab. Get one from
Context.new-page.
goto(Str $url --> Int)¶
Navigates to a URL and returns the HTTP status of the navigation response.
1 | |
url(--> Str)¶
The current page URL.
1 | |
title(--> Str)¶
The document title.
1 | |
locator(Str $selector --> Locator)¶
Returns a Locator for the selector. This is the entry point to
every action and query.
1 | |
screenshot(Str :$path --> Buf)¶
Captures the page as a PNG and returns the bytes. With :path, also writes the
image to that path.
1 | |
See Diagnostics.
close(--> Nil)¶
Closes the page.
1 | |