Method SimulateClick
- Namespace
- DotNetBrowser.Input.Mouse
- Assembly
- DotNetBrowser.Core.dll
SimulateClick(IMouse, MouseButton, Point)
Simulate mouse button click at the specified location.
public static void SimulateClick(this IMouse mouse, MouseButton mouseButton, Point location)
Parameters
mouse
IMouseThe mouse input simulation service.
mouseButton
MouseButtonThe mouse button that should be used for clicking.
location
PointThe mouse pointer location relative to the top left corner of the browser.
Remarks
SimulateClick(IMouse, MouseButton, IElement)
Simulate mouse button click at the specified element.
public static void SimulateClick(this IMouse mouse, MouseButton mouseButton, IElement element)
Parameters
mouse
IMouseThe mouse input simulation service.
mouseButton
MouseButtonThe mouse button that should be used for clicking.
element
IElementThe element to click at.