[][src]Struct selenium_webdriver::ActionsMouse

pub struct ActionsMouse { /* fields omitted */ }

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]

Drag one element and drop it on another one.

Trait Implementations

impl Debug for ActionsMouse[src]

impl<'de> Deserialize<'de> for ActionsMouse[src]

impl Serialize for ActionsMouse[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.