pub struct Locator { /* private fields */ }Implementations§
Source§impl Locator
impl Locator
pub fn page(&self) -> &Page
pub fn selector(&self) -> &str
pub fn locator(&self, css_selector: impl Into<String>) -> Locator
pub async fn click(&self) -> Result<ClickResult>
pub async fn click_with_options( &self, options: CommandOptions, ) -> Result<ClickResult>
pub async fn count(&self) -> Result<CountResult>
pub async fn count_with_options( &self, options: CommandOptions, ) -> Result<CountResult>
pub async fn highlight(&self) -> Result<HighlightResult>
pub async fn highlight_with_options( &self, options: HighlightOptions, ) -> Result<HighlightResult>
pub async fn focus(&self) -> Result<ElementResult>
pub async fn focus_with_options( &self, options: CommandOptions, ) -> Result<ElementResult>
pub async fn fill(&self, value: impl Into<String>) -> Result<FillResult>
pub async fn fill_with_options( &self, value: impl Into<String>, options: CommandOptions, ) -> Result<FillResult>
pub async fn hover(&self) -> Result<ElementResult>
pub async fn hover_with_options( &self, options: CommandOptions, ) -> Result<ElementResult>
pub async fn press(&self, key: impl Into<String>) -> Result<PressResult>
pub async fn press_with_options( &self, key: impl Into<String>, options: PressOptions, ) -> Result<PressResult>
pub async fn text_content(&self) -> Result<TextResult>
pub async fn text_content_with_options( &self, options: CommandOptions, ) -> Result<TextResult>
pub async fn inner_text(&self) -> Result<TextResult>
pub async fn inner_text_with_options( &self, options: CommandOptions, ) -> Result<TextResult>
pub async fn wait_for(&self) -> Result<WaitForSelectorResult>
pub async fn wait_for_with_options( &self, options: WaitForSelectorOptions, ) -> Result<WaitForSelectorResult>
Source§impl Locator
impl Locator
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 Locator
impl !UnwindSafe for Locator
impl Freeze for Locator
impl Send for Locator
impl Sync for Locator
impl Unpin for Locator
impl UnsafeUnpin for Locator
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