Struct playwright::api::playwright::Playwright[][src]

pub struct Playwright { /* fields omitted */ }

Entry point

Implementations

impl Playwright[src]

pub async fn initialize() -> Result<Playwright, Error>[src]

Installs playwright driver to “$CACHE_DIR/.ms-playwright/playwright-rust/driver”

pub async fn with_driver(driver: Driver) -> Result<Playwright, Error>[src]

Constructs from installed playwright driver

pub fn prepare(&mut self) -> Result<()>[src]

Runs $ playwright install

pub fn chromium(&self) -> BrowserType[src]

Launcher

pub fn firefox(&self) -> BrowserType[src]

Launcher

pub fn webkit(&self) -> BrowserType[src]

Launcher

pub fn driver(&mut self) -> &mut Driver[src]

pub fn selectors(&self) -> Selectors[src]

pub fn devices(&self) -> Vec<DeviceDescriptor>[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.