pub struct Locator { /* private fields */ }Expand description
A lazy query bound to a page; it holds no cached DOM node.
Implementations§
Source§impl Locator
impl Locator
Sourcepub fn in_frame(self, frame_id: impl Into<String>) -> Self
pub fn in_frame(self, frame_id: impl Into<String>) -> Self
Restrict resolution to a pinned frame identifier.
Sourcepub fn specification(&self) -> LocatorSpec
pub fn specification(&self) -> LocatorSpec
Return the serializable query.
Sourcepub async fn click(&self, options: ActionOptions) -> Result<ActionReceipt>
pub async fn click(&self, options: ActionOptions) -> Result<ActionReceipt>
Click once and verify the supplied completion condition.
Sourcepub async fn human_click(&self, options: ActionOptions) -> Result<ActionReceipt>
pub async fn human_click(&self, options: ActionOptions) -> Result<ActionReceipt>
Click with paced input and verify the supplied condition.
Sourcepub async fn fill(
&self,
value: &str,
options: ActionOptions,
) -> Result<ActionReceipt>
pub async fn fill( &self, value: &str, options: ActionOptions, ) -> Result<ActionReceipt>
Replace and verify the target value.
Sourcepub async fn select(
&self,
values: Vec<String>,
options: ActionOptions,
) -> Result<ActionReceipt>
pub async fn select( &self, values: Vec<String>, options: ActionOptions, ) -> Result<ActionReceipt>
Set and verify selected option values.
Sourcepub async fn upload(
&self,
files: Vec<String>,
options: ActionOptions,
) -> Result<ActionReceipt>
pub async fn upload( &self, files: Vec<String>, options: ActionOptions, ) -> Result<ActionReceipt>
Set and verify the uploaded files.
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