pub struct Tab { /* private fields */ }Implementations§
Source§impl Tab
impl Tab
pub fn locator(&self, css_selector: impl Into<String>) -> Locator
pub fn session_id(&self) -> &str
pub async fn goto( &self, url: impl Into<String>, ) -> Result<NavigateResult, Error>
pub async fn ping(&self, message: impl Into<String>) -> Result<String, Error>
pub async fn click( &self, css_selector: impl Into<String>, ) -> Result<ClickResult, Error>
pub async fn click_with_options( &self, css_selector: impl Into<String>, options: CommandOptions, ) -> Result<ClickResult, Error>
pub async fn count( &self, css_selector: impl Into<String>, ) -> Result<CountResult, Error>
pub async fn count_with_options( &self, css_selector: impl Into<String>, options: CommandOptions, ) -> Result<CountResult, Error>
pub async fn highlight( &self, css_selector: impl Into<String>, ) -> Result<HighlightResult, Error>
pub async fn highlight_with_options( &self, css_selector: impl Into<String>, options: HighlightOptions, ) -> Result<HighlightResult, Error>
pub async fn focus( &self, css_selector: impl Into<String>, ) -> Result<ElementResult, Error>
pub async fn focus_with_options( &self, css_selector: impl Into<String>, options: CommandOptions, ) -> Result<ElementResult, Error>
pub async fn fill( &self, css_selector: impl Into<String>, value: impl Into<String>, ) -> Result<FillResult, Error>
pub async fn fill_with_options( &self, css_selector: impl Into<String>, value: impl Into<String>, options: CommandOptions, ) -> Result<FillResult, Error>
pub async fn hover( &self, css_selector: impl Into<String>, ) -> Result<ElementResult, Error>
pub async fn hover_with_options( &self, css_selector: impl Into<String>, options: CommandOptions, ) -> Result<ElementResult, Error>
pub async fn press( &self, css_selector: impl Into<String>, key: impl Into<String>, ) -> Result<PressResult, Error>
pub async fn press_with_options( &self, css_selector: impl Into<String>, key: impl Into<String>, options: PressOptions, ) -> Result<PressResult, Error>
pub async fn text_content( &self, css_selector: impl Into<String>, ) -> Result<TextResult, Error>
pub async fn text_content_with_options( &self, css_selector: impl Into<String>, options: CommandOptions, ) -> Result<TextResult, Error>
pub async fn inner_text( &self, css_selector: impl Into<String>, ) -> Result<TextResult, Error>
pub async fn inner_text_with_options( &self, css_selector: impl Into<String>, options: CommandOptions, ) -> Result<TextResult, Error>
pub async fn wait_for_selector( &self, css_selector: impl Into<String>, ) -> Result<WaitForSelectorResult, Error>
pub async fn wait_for_selector_with_options( &self, css_selector: impl Into<String>, options: WaitForSelectorOptions, ) -> Result<WaitForSelectorResult, Error>
pub async fn close(&self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Tab
impl !UnwindSafe for Tab
impl Freeze for Tab
impl Send for Tab
impl Sync for Tab
impl Unpin for Tab
impl UnsafeUnpin for Tab
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request