pub struct Browser { /* private fields */ }
Expand description

A Browser is created when chromiumoxide connects to a Chromium instance.

Implementations

Connect to an already running chromium instance via websocket

Launches a new instance of chromium in the background and attaches to its debug web socket.

This fails when no chromium executable could be detected.

This fails if no web socket url could be detected from the child processes stderr for more than 20 seconds.

If not launched as incognito this creates a new incognito browser context. After that this browser exists within the incognito session. New pages created while being in incognito mode will also run in the incognito context. Incognito contexts won’t share cookies/cache with other browser contexts.

If a incognito session was created with Browser::start_incognito_context this disposes this context.

Note This will also dispose all pages that were running within the

incognito context.

Returns the address of the websocket this browser is attached to

Whether the BrowserContext is incognito.

The config of the spawned chromium instance if any.

Create a new browser page

Version information about the browser

Returns the user agent of the browser

Call a browser method.

Return all of the pages of the browser

Return page of given target_id

Trait Implementations

Formats the value using the given formatter. Read more

Executes the destructor for this type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.