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>
pub async fn ping(&self, message: impl Into<String>) -> Result<String>
pub async fn close(&self) -> Result<()>
Source§impl Tab
impl Tab
pub async fn accessibility_snapshot(&self) -> Result<String>
pub async fn accessibility_snapshot_with_options( &self, options: AccessibilitySnapshotOptions, ) -> Result<String>
Source§impl Tab
impl Tab
pub async fn click( &self, css_selector: impl Into<String>, ) -> Result<ClickResult>
pub async fn click_with_options( &self, css_selector: impl Into<String>, options: CommandOptions, ) -> Result<ClickResult>
pub async fn focus( &self, css_selector: impl Into<String>, ) -> Result<ElementResult>
pub async fn focus_with_options( &self, css_selector: impl Into<String>, options: CommandOptions, ) -> Result<ElementResult>
pub async fn fill( &self, css_selector: impl Into<String>, value: impl Into<String>, ) -> Result<FillResult>
pub async fn fill_with_options( &self, css_selector: impl Into<String>, value: impl Into<String>, options: CommandOptions, ) -> Result<FillResult>
pub async fn hover( &self, css_selector: impl Into<String>, ) -> Result<ElementResult>
pub async fn hover_with_options( &self, css_selector: impl Into<String>, options: CommandOptions, ) -> Result<ElementResult>
pub async fn press( &self, css_selector: impl Into<String>, key: impl Into<String>, ) -> Result<PressResult>
pub async fn press_with_options( &self, css_selector: impl Into<String>, key: impl Into<String>, options: PressOptions, ) -> Result<PressResult>
Source§impl Tab
impl Tab
pub async fn count( &self, css_selector: impl Into<String>, ) -> Result<CountResult>
pub async fn count_with_options( &self, css_selector: impl Into<String>, options: CommandOptions, ) -> Result<CountResult>
pub async fn highlight( &self, css_selector: impl Into<String>, ) -> Result<HighlightResult>
pub async fn highlight_with_options( &self, css_selector: impl Into<String>, options: HighlightOptions, ) -> Result<HighlightResult>
pub async fn text_content( &self, css_selector: impl Into<String>, ) -> Result<TextResult>
pub async fn text_content_with_options( &self, css_selector: impl Into<String>, options: CommandOptions, ) -> Result<TextResult>
pub async fn inner_text( &self, css_selector: impl Into<String>, ) -> Result<TextResult>
pub async fn inner_text_with_options( &self, css_selector: impl Into<String>, options: CommandOptions, ) -> Result<TextResult>
pub async fn wait_for_selector( &self, css_selector: impl Into<String>, ) -> Result<WaitForSelectorResult>
pub async fn wait_for_selector_with_options( &self, css_selector: impl Into<String>, options: WaitForSelectorOptions, ) -> Result<WaitForSelectorResult>
pub async fn screenshot(&self) -> Result<ScreenshotResult>
pub async fn screenshot_with_options( &self, options: ScreenshotOptions, ) -> Result<ScreenshotResult>
Source§impl Tab
impl Tab
pub fn get_by_role(&self, role: impl Into<String>) -> Locator
pub fn get_by_role_with_options( &self, role: impl Into<String>, options: RoleOptions, ) -> Locator
pub fn get_by_text(&self, text: impl Into<TextMatcher>) -> Locator
pub fn get_by_text_with_options( &self, text: impl Into<TextMatcher>, options: TextOptions, ) -> Locator
pub fn get_by_label(&self, text: impl Into<TextMatcher>) -> Locator
pub fn get_by_label_with_options( &self, text: impl Into<TextMatcher>, options: TextOptions, ) -> Locator
pub fn get_by_placeholder(&self, text: impl Into<TextMatcher>) -> Locator
pub fn get_by_placeholder_with_options( &self, text: impl Into<TextMatcher>, options: TextOptions, ) -> Locator
pub fn get_by_alt_text(&self, text: impl Into<TextMatcher>) -> Locator
pub fn get_by_alt_text_with_options( &self, text: impl Into<TextMatcher>, options: TextOptions, ) -> Locator
pub fn get_by_title(&self, text: impl Into<TextMatcher>) -> Locator
pub fn get_by_title_with_options( &self, text: impl Into<TextMatcher>, options: TextOptions, ) -> Locator
pub fn get_by_test_id(&self, text: impl Into<TextMatcher>) -> Locator
pub fn get_by_test_id_with_options( &self, text: impl Into<TextMatcher>, options: TextOptions, ) -> Locator
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