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:

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

t() :: %Playwright.Browser{
  connection: term(),
  guid: term(),
  initializer: term(),
  listeners: term(),
  name: term(),
  parent: term(),
  type: term(),
  version: term()
}

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.