Struct playwright::api::browser_context::BrowserContext[][src]

pub struct BrowserContext { /* fields omitted */ }

Implementations

impl BrowserContext[src]

pub fn pages(&self) -> Result<Vec<Page>, Error>[src]

pub fn browser(&self) -> Result<Option<Browser>, Error>[src]

pub async fn new_page(&self) -> Result<Page, Arc<Error>>[src]

pub async fn set_default_navigation_timeout(
    &self,
    timeout: u32
) -> Result<(), Arc<Error>>
[src]

pub async fn set_default_timeout(&self, timeout: u32) -> Result<(), Arc<Error>>[src]

pub async fn cookies(&self, urls: &[String]) -> Result<Vec<Cookie>, Arc<Error>>[src]

pub async fn add_cookies(&self, cookies: &[Cookie]) -> Result<(), Arc<Error>>[src]

pub async fn clear_cookies(&self) -> Result<(), Arc<Error>>[src]

pub async fn grant_permission(
    &self,
    permissions: &[String],
    origin: Option<&str>
) -> Result<(), Arc<Error>>
[src]

pub async fn clear_permissions(&self) -> Result<(), Arc<Error>>[src]

pub async fn set_geolocation(
    &self,
    geolocation: Option<&Geolocation>
) -> Result<(), Arc<Error>>
[src]

pub async fn set_offline(&self, offline: bool) -> Result<(), Arc<Error>>[src]

pub async fn add_init_script(&self, script: &str) -> Result<(), Arc<Error>>[src]

pub async fn set_extra_http_headers<T>(
    &self,
    headers: T
) -> Result<(), Arc<Error>> where
    T: IntoIterator<Item = (String, String)>, 
[src]

pub async fn expect_event(&self, evt: EventType) -> Result<Event, Error>[src]

pub async fn storage_state(&self) -> Result<StorageState, Arc<Error>>[src]

pub async fn close(&self) -> Result<(), Arc<Error>>[src]

All temporary browsers will be closed when the connection is terminated, but this struct has no Drop. it needs to be called explicitly to close it at any given time.

pub async fn pause(&self) -> Result<(), Arc<Error>>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.