-
Notifications
You must be signed in to change notification settings - Fork 0
context_click
roei sabag edited this page Jul 12, 2020
·
1 revision
Right clicks the mouse at the last known mouse coordinates or on the specified element.
Web, Mobile Web or any other Web Driver implementation which implements Context Click.
| Property | Description |
|---|---|
| argument | Plugin conditions and additional information. |
| onElement | The locator value by which the element will be found. |
| locator | The locator type by which the element will be found. |
None
https://www.w3.org/TR/webdriver/#actions
Can be tested on
Right clicks the mouse on the specified element.
{
"action": "ContextClick",
"onElement": "click_button",
"locator": "Id"
}context click on {click_button} using {id}
// aliases (alternatives)
right click on {click_button} using {id}
// option no.1
var actionRule = new ActionRule
{
Action = PluginsList.ContextClick,
OnElement = "click_button",
Locator = LocatorsList.Id
};
// option no.2
var actionRule = new
{
Action = "ContextClick",
OnElement = "click_button",
Locator = "Id"
};action_rule = {
"action": "ContextClick",
"onElement": "click_button",
"locator": "Id"
}var actionRule = {
action: "ContextClick",
onElement: "click_button",
locator: "Id"
};ActionRule actionRule = new ActionRule()
.setAction("ContextClick")
.setOnElement("click_button")
.setLocator("Id");Can be tested on
Right clicks the mouse at the last known mouse coordinates.
{
"action": "ContextClick"
}context click
// aliases (alternatives)
right click
// option no.1
var actionRule = new ActionRule
{
Action = PluginsList.ContextClick
};
// option no.2
var actionRule = new
{
Action = "ContextClick"
};action_rule = {
"action": "ContextClick"
}var actionRule = {
action: "ContextClick"
};ActionRule actionRule = new ActionRule().setAction("ContextClick");