-
Notifications
You must be signed in to change notification settings - Fork 0
move_to_element
roei sabag edited this page Jul 12, 2020
·
1 revision
Moves the mouse to the specified element. This action will trigger mouseover event.
Web, Mobile Web, Mobile Native or any other Web Driver implementation which implements Actions.
| Property | Description |
|---|---|
| elementToActOn | The locator value by which the element will be found. |
| locator | The locator type by which the element will be found. |
https://www.w3.org/TR/webdriver/#actions
Can be tested on:
Moves the mouse to the specified element.
{
"action": "MoveToElement",
"onElement": "over_outcome",
"locator": "Id"
}move to element on {over_outcome} using {id}
// option no.1
var actionRule = new ActionRule
{
Action = PluginsList.MoveToElement,
OnElement = "over_outcome",
Locator = LocatorsList.Id
};
// option no.2
var actionRule = new
{
Action = "MoveToElement",
OnElement = "over_outcome",
Locator = "Id"
};action_rule = {
"action": "MoveToElement",
"onElement": "over_outcome",
"locator": "Id"
}var actionRule = {
action: "MoveToElement",
onElement: "over_outcome",
locator: "Id"
};ActionRule actionRule = new ActionRule()
.setAction("MoveToElement")
.setOnElement("over_outcome")
.setLocator("Id");