pub enum LocatorAction {
Show 14 variants
Click {
locator: Locator,
},
DoubleClick {
locator: Locator,
},
Drag {
locator: Locator,
target: Point,
steps: u32,
duration: Duration,
},
Fill {
locator: Locator,
text: String,
},
WaitForVisible {
locator: Locator,
},
WaitForHidden {
locator: Locator,
},
RightClick {
locator: Locator,
},
ClickWithOptions {
locator: Locator,
options: ClickOptions,
},
Hover {
locator: Locator,
},
Focus {
locator: Locator,
},
Blur {
locator: Locator,
},
Check {
locator: Locator,
},
Uncheck {
locator: Locator,
},
ScrollIntoView {
locator: Locator,
},
}Expand description
Actions that can be performed on a located element
Variants§
Click
Click on the element
DoubleClick
Double-click on the element
Drag
Drag the element to a point
Fields
Fill
Fill the element with text
WaitForVisible
Wait for element to be visible
WaitForHidden
Wait for element to be hidden
RightClick
Right-click on the element (context menu)
ClickWithOptions
Click with custom options
Hover
Hover over the element
Focus
Focus the element
Blur
Remove focus from the element
Check
Check a checkbox or radio
Uncheck
Uncheck a checkbox
ScrollIntoView
Scroll element into view
Implementations§
Trait Implementations§
Source§impl Clone for LocatorAction
impl Clone for LocatorAction
Source§fn clone(&self) -> LocatorAction
fn clone(&self) -> LocatorAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LocatorAction
impl RefUnwindSafe for LocatorAction
impl Send for LocatorAction
impl Sync for LocatorAction
impl Unpin for LocatorAction
impl UnsafeUnpin for LocatorAction
impl UnwindSafe for LocatorAction
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more