[−][src]Struct selenium_webdriver::ActionsMouse
Struct to create the mouse actions sequence
Implementations
impl ActionsMouse
[src]
pub fn new() -> ActionsMouse
[src]
pub fn pause(&mut self, duration: u32) -> &mut Self
[src]
pub fn press_mouse_button(&mut self, button: MouseButton) -> &mut Self
[src]
pub fn release_mouse_button(&mut self, button: MouseButton) -> &mut Self
[src]
pub fn move_mouse_to_point(&mut self, x: i32, y: i32) -> &mut Self
[src]
The point's coordinates are relative to the viewport, if x or y is larger than the coordinate of the viewport, you will get an error calling the perform_actions method of the Browser
pub fn move_mouse_to_element(&mut self, element: &Element) -> &mut Self
[src]
Moves mouse to the center of the element. Will cause an error if the element is not in the viewport
pub fn cancel_action(&mut self) -> &mut Self
[src]
pub fn drag_n_drop(
&mut self,
elem_to_drag: Element,
elem_destination: Element
) -> &mut Self
[src]
&mut self,
elem_to_drag: Element,
elem_destination: Element
) -> &mut Self
Drag one element and drop it on another one.
Trait Implementations
impl Debug for ActionsMouse
[src]
impl<'de> Deserialize<'de> for ActionsMouse
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for ActionsMouse
[src]
Auto Trait Implementations
impl RefUnwindSafe for ActionsMouse
impl Send for ActionsMouse
impl Sync for ActionsMouse
impl Unpin for ActionsMouse
impl UnwindSafe for ActionsMouse
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,