Playwright.Browser (playwright v0.1.16-preview-1) View Source
Playwright.Browser
represents a launched web browser instance managed by
Playwright.
A Playwright.Browser
is created via:
Playwright.BrowserType.launch/0
, when using the "driver" transport.Playwright.BrowserType.connect/1
, when using the "websocket" transport.
Link to this section Summary
Functions
Create a new BrowserContext for this Browser. A BrowserContext is somewhat equivalent to an "incognito" browser "window".
Create a new Page for this Browser. A Page is somewhat equivalent to a "tab" in a browser "window".
Link to this section Types
Specs
Link to this section Functions
Create a new BrowserContext for this Browser. A BrowserContext is somewhat equivalent to an "incognito" browser "window".
Specs
new_page(t()) :: Playwright.Page.t()
Create a new Page for this Browser. A Page is somewhat equivalent to a "tab" in a browser "window".
Note that Playwright.Browser.new_page/1
will also create a new
Playwright.BrowserContext
. That BrowserContext
becomes, both, the
parent the Page
, and owned by the Page
. When the Page
closes,
the context goes with it.