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, Error>
pub async fn count(&self) -> Result<CountResult, Error>
pub async fn highlight(&self) -> Result<HighlightResult, Error>
pub async fn focus(&self) -> Result<ElementResult, Error>
pub async fn fill(&self, value: impl Into<String>) -> Result<FillResult, Error>
pub async fn hover(&self) -> Result<ElementResult, Error>
pub async fn press(&self, key: impl Into<String>) -> Result<PressResult, Error>
pub async fn text_content(&self) -> Result<TextResult, Error>
pub async fn inner_text(&self) -> Result<TextResult, Error>
pub async fn wait_for(&self) -> Result<WaitForSelectorResult, Error>
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