-
Notifications
You must be signed in to change notification settings - Fork 0
select_from_combo_box
Provides a convenience method for manipulating selections of options in an HTML select element. This action supports different selection options as well as multiple selection based on a pattern.
Web, Mobile Web.
| 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. |
| onAttribute | The element attribute from which to extract information for action execution. If not specified, information will be taken from the element inner text. |
| regularExpression | A pattern by which the extracted information will be evaluated. Returns the first match. |
Select all values in the combo box (combo must be of type multiple).
None
Can be tested on
Selects a single value from select_menu combo box, by item text.
{
"action": "SelectFromComboBox",
"argument": "Two",
"onElement": "select_menu",
"locator": "Id"
}select from combo box {Two} on {select_menu} using {id}
var actionRule = new ActionRule
{
Action = PluginsList.SelectFromComboBox,
Argument = "Two",
OnElement: "select_menu",
Locator: "Id"
};action_rule = {
"action": "SelectFromComboBox",
"argument": "Two",
"onElement": "select_menu",
"locator": "Id"
}var actionRule = {
action: "SelectFromComboBox",
argument: "Two",
onElement: "select_menu",
locator: "Id"
};ActionRule actionRule = new ActionRule()
.setAction("SelectFromComboBox")
.setArgument("Two")
.setOnElement("select_menu")
.setLocator("Id");Can be tested on
Selects a single value from select_menu combo box, by item value.
{
"action": "SelectFromComboBox",
"argument": "2",
"onElement": "select_menu",
"locator": "Id",
"onAttribute": "value"
}select from combo box {2} on {select_menu} using {id} from {value}
var actionRule = new ActionRule
{
Action = PluginsList.SelectFromComboBox,
Argument = "2",
OnElement: "select_menu",
Locator: "Id",
OnAttribute: "value"
};action_rule = {
"action": "SelectFromComboBox",
"argument": "2",
"onElement": "select_menu",
"locator": "Id",
"onAttribute": "value"
}var actionRule = {
action: "SelectFromComboBox",
argument: "2",
onElement: "select_menu",
locator: "Id",
onAttribute: "value"
};ActionRule actionRule = new ActionRule()
.setAction("SelectFromComboBox")
.setArgument("2")
.setOnElement("select_menu")
.setLocator("Id")
.setOnAttribute("value");Can be tested on
Selects a single value from select_menu combo box, by item index.
{
"action": "SelectFromComboBox",
"argument": "2",
"onElement": "select_menu",
"locator": "Id",
"onAttribute": "index"
}select from combo box {2} on {select_menu} using {id} from {index}
var actionRule = new ActionRule
{
Action = PluginsList.SelectFromComboBox,
Argument = "2",
OnElement: "select_menu",
Locator: "Id",
OnAttribute: "index"
};action_rule = {
"action": "SelectFromComboBox",
"argument": "2",
"onElement": "select_menu",
"locator": "Id",
"onAttribute": "index"
}var actionRule = {
action: "SelectFromComboBox",
argument: "2",
onElement: "select_menu",
locator: "Id",
onAttribute: "index"
};ActionRule actionRule = new ActionRule()
.setAction("SelectFromComboBox")
.setArgument("2")
.setOnElement("select_menu")
.setLocator("Id")
.setOnAttribute("index");Can be tested on
Selects multiple values from select_menu_multiple combo box, by item text.
{
"action": "SelectFromComboBox",
"argument": "['One', 'Two']",
"onElement": "select_menu_multiple",
"locator": "Id"
}select from combo box {['One', 'Two']} on {select_menu_multiple} using {id}
var actionRule = new ActionRule
{
Action = PluginsList.SelectFromComboBox,
Argument = "['One', 'Two']",
OnElement: "select_menu_multiple",
Locator: "Id"
};action_rule = {
"action": "SelectFromComboBox",
"argument": "['One', 'Two']",
"onElement": "select_menu_multiple",
"locator": "Id"
}action_rule = {
action: "SelectFromComboBox",
argument: "['One', 'Two']",
onElement: "select_menu_multiple",
locator: "Id"
};ActionRule actionRule = new ActionRule()
.setAction("SelectFromComboBox")
.setArgument("['One', 'Two']")
.setOnElement("select_menu_multiple")
.setLocator("Id");Can be tested on
Selects multiple values from select_menu_multiple combo box, by item value.
{
"action": "SelectFromComboBox",
"argument": "['1', '2']",
"onElement": "select_menu_multiple",
"locator": "Id",
"onAttribute": "value"
}select from combo box {['1', '2']} on {select_menu_multiple} using {id} from {value}
var actionRule = new ActionRule
{
Action = PluginsList.SelectFromComboBox,
Argument = "['1', '2']",
OnElement: "select_menu_multiple",
Locator: "Id",
OnAttribute: "value"
};action_rule = {
"action": "SelectFromComboBox",
"argument": "['1', '2']",
"onElement": "select_menu_multiple",
"locator": "Id",
"onAttribute": "value"
}action_rule = {
action: "SelectFromComboBox",
argument: "['1', '2']",
onElement: "select_menu_multiple",
locator: "Id",
onAttribute: "value"
};ActionRule actionRule = new ActionRule()
.setAction("SelectFromComboBox")
.setArgument("['1', '2']")
.setOnElement("select_menu_multiple")
.setLocator("Id")
.setOnAttribute("value");Can be tested on
Selects multiple values from select_menu_multiple combo box, by item index.
{
"action": "SelectFromComboBox",
"argument": "['1', '2']",
"onElement": "select_menu_multiple",
"locator": "Id",
"onAttribute": "index"
}select from combo box {['1', '2']} on {select_menu_multiple} using {id} from {index}
var actionRule = new ActionRule
{
Action = PluginsList.SelectFromComboBox,
Argument = "['1', '2']",
OnElement: "select_menu_multiple",
Locator: "Id",
OnAttribute: "index"
};action_rule = {
"action": "SelectFromComboBox",
"argument": "['1', '2']",
"onElement": "select_menu_multiple",
"locator": "Id",
"onAttribute": "index"
}action_rule = {
action: "SelectFromComboBox",
argument: "['1', '2']",
onElement: "select_menu_multiple",
locator: "Id",
onAttribute: "index"
};ActionRule actionRule = new ActionRule()
.setAction("SelectFromComboBox")
.setArgument("['1', '2']")
.setOnElement("select_menu_multiple")
.setLocator("Id")
.setOnAttribute("index");Can be tested on
Selects all values from select_menu_multiple combo box.
{
"action": "SelectFromComboBox",
"argument": "{{$ --all}}",
"onElement": "select_menu_multiple",
"locator": "Id"
}select from combo box {{$ --all}} on {select_menu_multiple} using {id}
var actionRule = new ActionRule
{
Action = PluginsList.SelectFromComboBox,
Argument = "{{$ --all}}",
OnElement: "select_menu_multiple",
Locator: "Id"
};action_rule = {
"action": "SelectFromComboBox",
"argument": "{{$ --all}}",
"onElement": "select_menu_multiple",
"locator": "Id"
}action_rule = {
action: "SelectFromComboBox",
argument: "{{$ --all}}",
onElement: "select_menu_multiple",
locator: "Id"
};ActionRule actionRule = new ActionRule()
.setAction("SelectFromComboBox")
.setArgument("{{$ --all}}")
.setOnElement("select_menu_multiple")
.setLocator("Id");Can be tested on
Selects all values from select_menu_multiple combo box if the option inner text match T.
{
"action": "SelectFromComboBox",
"argument": "{{$ --all}}",
"onElement": "select_menu_multiple",
"locator": "Id",
"regularExpression": "T"
}select from combo box {{$ --all}} on {select_menu_multiple} using {id} filter {T}
var actionRule = new ActionRule
{
Action = PluginsList.SelectFromComboBox,
Argument = "{{$ --all}}",
OnElement: "select_menu_multiple",
Locator: "Id",
RegularExpression: "T"
};action_rule = {
"action": "SelectFromComboBox",
"argument": "{{$ --all}}",
"onElement": "select_menu_multiple",
"locator": "Id",
"regularExpression": "T"
}action_rule = {
action: "SelectFromComboBox",
argument: "{{$ --all}}",
onElement: "select_menu_multiple",
locator: "Id",
regularExpression: "T"
};ActionRule actionRule = new ActionRule()
.setAction("SelectFromComboBox")
.setArgument("{{$ --all}}")
.setOnElement("select_menu_multiple")
.setLocator("Id")
.setRegularExpression("T");