pub struct Browser { /* private fields */ }Expand description
Browser instance for testing (mock when browser feature disabled)
Implementations§
Source§impl Browser
impl Browser
Sourcepub fn launch(config: BrowserConfig) -> ProbarResult<Self>
pub fn launch(config: BrowserConfig) -> ProbarResult<Self>
Sourcepub fn new_page(&self) -> ProbarResult<Page>
pub fn new_page(&self) -> ProbarResult<Page>
Sourcepub const fn config(&self) -> &BrowserConfig
pub const fn config(&self) -> &BrowserConfig
Get the browser configuration
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Browser
impl RefUnwindSafe for Browser
impl Send for Browser
impl Sync for Browser
impl Unpin for Browser
impl UnsafeUnpin for Browser
impl UnwindSafe for Browser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more