Interface IAutomationAction
- Namespace
- GroupeIsa.Neos.EndToEndTests.UI.Devices
- Assembly
- GroupeIsa.Neos.EndToEndTests.UI.dll
Provides the functionalities of chained automation actions.
public interface IAutomationAction
Methods
Click()
Clicks at the current mouse location.
IAutomationAction Click()
Returns
- IAutomationAction
A self-reference to this IAutomationAction.
ClickAndHold()
Clicks and holds the mouse button at the last known mouse coordinates.
IAutomationAction ClickAndHold()
Returns
- IAutomationAction
A self-reference to this IAutomationAction.
ContextClick()
Context clicks at the current mouse location.
IAutomationAction ContextClick()
Returns
- IAutomationAction
A self-reference to this IAutomationAction.
DoubleClick()
Double clicks at the current mouse location.
IAutomationAction DoubleClick()
Returns
- IAutomationAction
A self-reference to this IAutomationAction.
KeyDown(KeyboardKeys)
Simulates a keydown for the specified key.
IAutomationAction KeyDown(KeyboardKeys key)
Parameters
key
KeyboardKeysThe keystroke.
Returns
- IAutomationAction
A self-reference to this IAutomationAction.
KeyUp(KeyboardKeys)
Simulates a keyup for the specified key.
IAutomationAction KeyUp(KeyboardKeys key)
Parameters
key
KeyboardKeysThe keystroke.
Returns
- IAutomationAction
A self-reference to this IAutomationAction.
MoveByOffset(int, int)
Moves the mouse to the specified offset of the last known mouse coordinates.
IAutomationAction MoveByOffset(int offsetX, int offsetY)
Parameters
offsetX
intThe horizontal offset to which to move the mouse.
offsetY
intThe vertical offset to which to move the mouse.
Returns
- IAutomationAction
A self-reference to this IAutomationAction.
MoveToComponent(IAutomationComponent)
Moves the mouse to the specified component.
IAutomationAction MoveToComponent(IAutomationComponent toComponent)
Parameters
toComponent
IAutomationComponentThe component to which to move the mouse.
Returns
- IAutomationAction
A self-reference to this IAutomationAction.
MoveToComponent(IAutomationComponent, int, int)
Moves the mouse to the specified component.
IAutomationAction MoveToComponent(IAutomationComponent toComponent, int offsetX, int offsetY)
Parameters
toComponent
IAutomationComponentThe component to which to move the mouse.
offsetX
intThe horizontal offset to which to move the mouse (calculated from the center of the web element).
offsetY
intThe vertical offset to which to move the mouse (calculated from the center of the web element).
Returns
- IAutomationAction
A self-reference to this IAutomationAction.
Perform()
Performs thes actions.
void Perform()
Release()
Releases the mouse button at the last known mouse coordinates.
IAutomationAction Release()
Returns
- IAutomationAction
A self-reference to this IAutomationAction.
SendKeys(string)
Sends a sequence of keystrokes to the application.
IAutomationAction SendKeys(string keys)
Parameters
keys
stringThe keystrokes to send to the application.
Returns
- IAutomationAction
A self-reference to this IAutomationAction.