pub struct BrowserSessions { /* private fields */ }Implementations§
Source§impl BrowserSessions
impl BrowserSessions
pub fn new(pool: Arc<BrowserPool>) -> Self
pub async fn open( &self, request: OpenSessionRequest, ) -> UseResult<BrowserSnapshot>
pub async fn list(&self) -> UseResult<Vec<BrowserSessionInfo>>
pub async fn snapshot( &self, session: &UseSessionId, ) -> UseResult<BrowserSnapshot>
pub async fn click( &self, session: &UseSessionId, reference: &str, ) -> UseResult<BrowserActionResult>
pub async fn type_text( &self, session: &UseSessionId, reference: &str, text: &str, ) -> UseResult<BrowserActionResult>
pub async fn press_key( &self, session: &UseSessionId, reference: &str, key: &str, ) -> UseResult<BrowserActionResult>
pub async fn select( &self, session: &UseSessionId, reference: &str, value: &str, ) -> UseResult<BrowserActionResult>
pub async fn scroll( &self, session: &UseSessionId, x: i64, y: i64, ) -> UseResult<BrowserActionResult>
pub async fn screenshot( &self, session: &UseSessionId, path: impl AsRef<Path>, ) -> UseResult<Artifact>
pub async fn close(&self, session: &UseSessionId) -> UseResult<bool>
pub async fn shutdown(&self)
Auto Trait Implementations§
impl !Freeze for BrowserSessions
impl !RefUnwindSafe for BrowserSessions
impl !UnwindSafe for BrowserSessions
impl Send for BrowserSessions
impl Sync for BrowserSessions
impl Unpin for BrowserSessions
impl UnsafeUnpin for BrowserSessions
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more