ClassMouseExtensions
DesktopElement specific extensions for Mouse class.
Definition
Namespace:ArtOfTest.WebAii.DesktopAutomation
Assembly:ArtOfTest.WebAii.dll
Syntax:
public static class MouseExtensions
Inheritance: objectMouseExtensions
Methods
Click(Mouse, DesktopControl, MouseClickType, int)
Simulate a mouse event.
Declaration
public static void Click(this Mouse mouse, DesktopControl control, MouseClickType clickType = MouseClickType.LeftClick, int delay = 500)
Parameters
mouse
Mouse object.
control
Desktop control to click.
clickType
The type of click to simulate.
delay
Delay in ms to wait after click is performed.
Click(Mouse, DesktopControl, MouseClickType, int, int, int)
Simulate a mouse event.
Declaration
public static void Click(this Mouse mouse, DesktopControl control, MouseClickType clickType, int xOffset, int yOffset, int delay = 500)
Parameters
mouse
Mouse object.
control
Desktop control to click.
clickType
The type of click to simulate.
xOffset
Horizontal offset from element center.
yOffset
Vertical offset from element center.
delay
Delay in ms to wait after click is performed.
Click(Mouse, DesktopElement, MouseClickType, int)
Simulate a mouse event.
Declaration
public static void Click(this Mouse mouse, DesktopElement element, MouseClickType clickType = MouseClickType.LeftClick, int delay = 500)
Parameters
mouse
Mouse object.
element
Desktop element to click.
clickType
The type of click to simulate.
delay
Delay in ms to wait after click is performed.
Click(Mouse, DesktopElement, MouseClickType, int, int, int)
Simulate a mouse event.
Declaration
public static void Click(this Mouse mouse, DesktopElement element, MouseClickType clickType, int xOffset, int yOffset, int delay = 500)
Parameters
mouse
Mouse object.
element
Desktop element to click.
clickType
The type of click to simulate.
xOffset
Horizontal offset from element center.
yOffset
Vertical offset from element center.
delay
Delay in ms to wait after click is performed.