-
Notifications
You must be signed in to change notification settings - Fork 0
assert_samples_no3
- Examples: selected
- Examples: stale
- Examples: text
- Examples: title
- Examples: url
- Examples: visible
- Examples: windows_count
Can be tested on
Assert that <input id="input_selected"> element is selected.
{
"action": "Assert",
"argument": "{{$ --selected}}",
"onElement": "input_selected",
"locator": "Id"
}assert {{$ --selected}} on {input_selected} using {id}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --selected}}",
OnElement = "input_selected",
Locator = LocatorsList.Id
};action_rule = {
"action": "Assert",
"argument": "{{$ --selected}}",
"onElement": "input_selected",
"locator": "Id"
}var actionRule = {
action: "Assert",
argument: "{{$ --selected}}",
onElement: "input_selected",
locator: "Id"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --selected}}")
.setOnElement("input_selected")
.setLocator("Id");Can be tested on
Assert that <div id="for_stale_element"> element is stale.
{
"action": "Assert",
"argument": "{{$ --stale}}",
"onElement": "for_stale_element",
"locator": "Id"
}assert {{$ --selected}} on {input_selected} using {id}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --stale}}",
OnElement = "for_stale_element",
Locator = LocatorsList.Id
};action_rule = {
"action": "Assert",
"argument": "{{$ --stale}}",
"onElement": "for_stale_element",
"locator": "Id"
}var actionRule = {
action: "Assert",
argument: "{{$ --stale}}",
onElement: "for_stale_element",
locator: "Id"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --stale}}")
.setOnElement("for_stale_element")
.setLocator("Id");Can be tested on
Assert that text for testing inner text equals Foo Bar.
{
"action": "Assert",
"argument": "{{$ --text --eq:Foo Bar}}",
"onElement": "text for testing",
"locator": "Name"
}assert {{$ --text --eq:Foo Bar}} on {text for testing} using {name}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --text --eq:Foo Bar}}",
OnElement = "text for testing",
Locator = LocatorsList.Name
};action_rule = {
"action": "Assert",
"argument": "{{$ --text --eq:Foo Bar}}",
"onElement": "text for testing",
"locator": "Name"
}var actionRule = {
action: "Assert",
argument: "{{$ --text --eq:Foo Bar}}",
onElement: "text for testing",
locator: "Name"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --text --eq:Foo Bar}}")
.setOnElement("text for testing")
.setLocator("Name")Can be tested on
Assert that text for testing inner text not equals Bar Foo.
{
"action": "Assert",
"argument": "{{$ --text --ne:Bar Foo}}",
"onElement": "text for testing",
"locator": "Name"
}assert {{$ --text --ne:Bar Foo}} on {text for testing} using {name}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --text --ne:Bar Foo}}",
OnElement = "text for testing",
Locator = LocatorsList.Name
};action_rule = {
"action": "Assert",
"argument": "{{$ --text --ne:Bar Foo}}",
"onElement": "text for testing",
"locator": "Name"
}var actionRule = {
action: "Assert",
argument: "{{$ --text --ne:Bar Foo}}",
onElement: "text for testing",
locator: "Name"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --text --ne:Bar Foo}}")
.setOnElement("text for testing")
.setLocator("Name")Can be tested on
Assert that text for testing inner text matches ^Foo Bar$.
{
"action": "Assert",
"argument": "{{$ --text --match:^Foo Bar$}}",
"onElement": "text for testing",
"locator": "Name"
}assert {{$ --text --match:^Foo Bar$}} on {text for testing} using {name}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --text --match:^Foo Bar$}}",
OnElement = "text for testing",
Locator = LocatorsList.Name
};action_rule = {
"action": "Assert",
"argument": "{{$ --text --match:^Foo Bar$}}",
"onElement": "text for testing",
"locator": "Name"
}var actionRule = {
action: "Assert",
argument: "{{$ --text --match:^Foo Bar$}}",
onElement: "text for testing",
locator: "Name"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --text --match:^Foo Bar$}}")
.setOnElement("text for testing")
.setLocator("Name")Can be tested on
Assert that text for testing inner text not match ^Bar Foo$.
{
"action": "Assert",
"argument": "{{$ --text --not_match:^Bar Foo$}}",
"onElement": "text for testing",
"locator": "Name"
}assert {{$ --text --not_match:^Bar Foo$}} on {text for testing} using {name}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --text --not_match:^Bar Foo$}}",
OnElement = "text for testing",
Locator = LocatorsList.Name
};action_rule = {
"action": "Assert",
"argument": "{{$ --text --not_match:^Bar Foo$}}",
"onElement": "text for testing",
"locator": "Name"
}var actionRule = {
action: "Assert",
argument: "{{$ --text --not_match:^Bar Foo$}}",
onElement: "text for testing",
locator: "Name"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --text --not_match:^Bar Foo$}}")
.setOnElement("text for testing")
.setLocator("Name")Can be tested on
Assert that number for testing inner text is greater than 1.
{
"action": "Assert",
"argument": "{{$ --text --gt:1}}",
"onElement": "number for testing",
"locator": "Name"
}assert {{$ --text --gt:1}} on {number for testing} using {name}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --text --gt:1}}",
OnElement = "number for testing",
Locator = LocatorsList.Name
};action_rule = {
"action": "Assert",
"argument": "{{$ --text --gt:1}}",
"onElement": "number for testing",
"locator": "Name"
}var actionRule = {
action: "Assert",
argument: "{{$ --text --gt:1}}",
onElement: "number for testing",
locator: "Name"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --text --gt:1}}")
.setOnElement("number for testing")
.setLocator("Name");Can be tested on
Assert that number for testing inner text is lower than 100.
{
"action": "Assert",
"argument": "{{$ --text --lt:100}}",
"onElement": "number for testing",
"locator": "Name"
}assert {{$ --text --lt:100}} on {number for testing} using {name}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --text --lt:100}}",
OnElement = "number for testing",
Locator = LocatorsList.Name
};action_rule = {
"action": "Assert",
"argument": "{{$ --text --lt:100}}",
"onElement": "number for testing",
"locator": "Name"
}var actionRule = {
action: "Assert",
argument: "{{$ --text --lt:100}}",
onElement: "number for testing",
locator: "Name"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --text --lt:100}}")
.setOnElement("number for testing")
.setLocator("Name");Can be tested on
Assert that number for testing inner text is greater or equal 10.
{
"action": "Assert",
"argument": "{{$ --text --ge:10}}",
"onElement": "number for testing",
"locator": "Name"
}assert {{$ --text --ge:10}} on {number for testing} using {name}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --text --ge:10}}",
OnElement = "number for testing",
Locator = LocatorsList.Name
};action_rule = {
"action": "Assert",
"argument": "{{$ --text --ge:10}}",
"onElement": "number for testing",
"locator": "Name"
}var actionRule = {
action: "Assert",
argument: "{{$ --text --ge:10}}",
onElement: "number for testing",
locator: "Name"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --text --ge:10}}")
.setOnElement("number for testing")
.setLocator("Name");Can be tested on
Assert that number for testing inner text is lower or equal 10.
{
"action": "Assert",
"argument": "{{$ --text --le:10}}",
"onElement": "number for testing",
"locator": "Name"
}assert {{$ --text --ge:10}} on {number for testing} using {name}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --text --le:10}}",
OnElement = "number for testing",
Locator = LocatorsList.Name
};action_rule = {
"action": "Assert",
"argument": "{{$ --text --le:10}}",
"onElement": "number for testing",
"locator": "Name"
}var actionRule = {
action: "Assert",
argument: "{{$ --text --le:10}}",
onElement: "number for testing",
locator: "Name"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --text --le:10}}")
.setOnElement("number for testing")
.setLocator("Name");Can be tested on
Assert that IWebDriver.Title equals UI Controls v10 - Contoso University.
{
"action": "Assert",
"argument": "{{$ --title --eq:UI Controls v10 - Contoso University}}"
}assert {{$ --title --eq:UI Controls v10 - Contoso University}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --title --eq:UI Controls v10 - Contoso University}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --title --eq:UI Controls v10 - Contoso University}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --title --eq:UI Controls v10 - Contoso University}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --title --eq:UI Controls v10 - Contoso University}}");Can be tested on
Assert that IWebDriver.Title not equals Contoso University - UI Controls v10.
{
"action": "Assert",
"argument": "{{$ --title --ne:Contoso University - UI Controls v10}}"
}assert {{$ --title --ne:Contoso University - UI Controls v10}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --title --ne:Contoso University - UI Controls v10}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --title --ne:Contoso University - UI Controls v10}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --title --ne:Contoso University - UI Controls v10}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --title --ne:Contoso University - UI Controls v10}}");Can be tested on
Assert that IWebDriver.Title matches ^UI Controls.
{
"action": "Assert",
"argument": "{{$ --title --match:^UI Controls}}"
}assert {{$ --title --match:^UI Controls}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --title --match:^UI Controls}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --title --match:^UI Controls}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --title --match:^UI Controls}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --title --match:^UI Controls}}");Can be tested on
Assert that IWebDriver.Title not match UI Controls v10$.
{
"action": "Assert",
"argument": "{{$ --title --not_match:UI Controls v10$}}"
}assert {{$ --title --not_match:UI Controls v10$}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --title --not_match:UI Controls v10$}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --title --not_match:UI Controls v10$}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --title --not_match:UI Controls v10$}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --title --not_match:UI Controls v10$}}");Can be tested on
Assert that IWebDriver.Title filtered by \d+ regular expression, is greater than 1.
{
"action": "Assert",
"argument": "{{$ --title --gt:1}}",
"regularExpression": "\\d+"
}assert {{$ --title --gt:1}} filter {\d+}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --title --gt:1}}",
RegularExpression = "\\d+"
};action_rule = {
"action": "Assert",
"argument": "{{$ --title --gt:1}}",
"regularExpression": "\\d+"
}var actionRule = {
action: "Assert",
argument: "{{$ --title --gt:1}}",
regularExpression: "\\d+"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --title --gt:1}}")
.setRegularExpression("\\d+");Can be tested on
Assert that IWebDriver.Title filtered by \d+ regular expression, is lower than 100.
{
"action": "Assert",
"argument": "{{$ --title --lt:100}}",
"regularExpression": "\\d+"
}assert {{$ --title --gt:100}} filter {\d+}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --title --lt:100}}",
RegularExpression = "\\d+"
};action_rule = {
"action": "Assert",
"argument": "{{$ --title --lt:100}}",
"regularExpression": "\\d+"
}var actionRule = {
action: "Assert",
argument: "{{$ --title --lt:100}}",
regularExpression: "\\d+"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --title --lt:100}}")
.setRegularExpression("\\d+");Can be tested on
Assert that IWebDriver.Title filtered by \d+ regular expression, is greater or equal 10.
{
"action": "Assert",
"argument": "{{$ --title --ge:10}}",
"regularExpression": "\\d+"
}assert {{$ --title --ge:10}} filter {\d+}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --title --ge:10}}",
RegularExpression = "\\d+"
};action_rule = {
"action": "Assert",
"argument": "{{$ --title --ge:10}}",
"regularExpression": "\\d+"
}var actionRule = {
action: "Assert",
argument: "{{$ --title --ge:10}}",
regularExpression: "\\d+"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --title --ge:10}}")
.setRegularExpression("\\d+");Can be tested on
Assert that IWebDriver.Title filtered by \d+ regular expression, is lower or equal 10.
{
"action": "Assert",
"argument": "{{$ --title --le:10}}",
"regularExpression": "\\d+"
}assert {{$ --title --ge:10}} filter {\d+}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --title --le:10}}",
RegularExpression = "\\d+"
};action_rule = {
"action": "Assert",
"argument": "{{$ --title --le:10}}",
"regularExpression": "\\d+"
}var actionRule = {
action: "Assert",
argument: "{{$ --title --le:10}}",
regularExpression: "\\d+"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --title --le:10}}")
.setRegularExpression("\\d+");Can be tested on
Assert that IWebDriver.Url equals https://gravitymvctestapplication.azurewebsites.net/course/.
{
"action": "Assert",
"argument": "{{$ --url --eq:https://gravitymvctestapplication.azurewebsites.net/course/}}"
}assert {{$ --url --eq:https://gravitymvctestapplication.azurewebsites.net/course/}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --url --eq:https://gravitymvctestapplication.azurewebsites.net/course/}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --url --eq:https://gravitymvctestapplication.azurewebsites.net/course/}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --url --eq:https://gravitymvctestapplication.azurewebsites.net/course/}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --url --eq:https://gravitymvctestapplication.azurewebsites.net/course/}}");Can be tested on
Assert that IWebDriver.Url not equals https://gravitymvctestapplication.azurewebsites.net/.
{
"action": "Assert",
"argument": "{{$ --url --ne:https://gravitymvctestapplication.azurewebsites.net/}}"
}assert {{$ --title --ne:https://gravitymvctestapplication.azurewebsites.net/}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --url --ne:https://gravitymvctestapplication.azurewebsites.net/}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --url --ne:https://gravitymvctestapplication.azurewebsites.net/}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --url --ne:https://gravitymvctestapplication.azurewebsites.net/}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --url --ne:https://gravitymvctestapplication.azurewebsites.net/}}");Can be tested on
Assert that IWebDriver.Url matches course/$.
{
"action": "Assert",
"argument": "{{$ --url --match:course/$}}"
}assert {{$ --url --match:course/$}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --url --match:course/$}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --url --match:course/$}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --url --match:course/$}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --url --match:course/$}}");Can be tested on
Assert that IWebDriver.Url not match ^course/.
{
"action": "Assert",
"argument": "{{$ --url --not_match:^course/}}"
}assert {{$ --title --not_match:^course/}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --url --not_match:^course/}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --url --not_match:^course/}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --url --not_match:^course/}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --url --not_match:^course/}}");Can be tested on
Assert that IWebDriver.Url filtered by \d+ regular expression, is greater than 1000.
{
"action": "Assert",
"argument": "{{$ --url --gt:1000}}",
"regularExpression": "\\d+"
}assert {{$ --title --gt:1000}} filter {\\d+}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --url --gt:1000}}",
RegularExpression = "\\d+"
};action_rule = {
"action": "Assert",
"argument": "{{$ --url --gt:1000}}",
"regularExpression": "\\d+"
}var actionRule = {
action: "Assert",
argument: "{{$ --url --gt:1000}}",
regularExpression: "\\d+"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --url --gt:1000}}")
.setRegularExpression("\\d+");Can be tested on
Assert that IWebDriver.Url filtered by \d+ regular expression, is lower than 2000.
{
"action": "Assert",
"argument": "{{$ --url --lt:2000}}",
"regularExpression": "\\d+"
}assert {{$ --url --lt:2000}} filter {\d+}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --url --lt:2000}}",
RegularExpression = "\\d+"
};action_rule = {
"action": "Assert",
"argument": "{{$ --url --lt:2000}}",
"regularExpression": "\\d+"
}var actionRule = {
action: "Assert",
argument: "{{$ --url --lt:2000}}",
regularExpression: "\\d+"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --url --lt:2000}}")
.setRegularExpression("\\d+");Can be tested on
Assert that IWebDriver.Url filtered by \d+ regular expression, is greater or equal 1045.
{
"action": "Assert",
"argument": "{{$ --url --ge:1045}}",
"regularExpression": "\\d+"
}assert {{$ --url --ge:1045}} filter {\d+}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --url --ge:1045}}",
RegularExpression = "\\d+"
};action_rule = {
"action": "Assert",
"argument": "{{$ --url --ge:1045}}",
"regularExpression": "\\d+"
}var actionRule = {
action: "Assert",
argument: "{{$ --url --ge:1045}}",
regularExpression: "\\d+"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --url --ge:1045}}")
.setRegularExpression("\\d+");Can be tested on
Assert that IWebDriver.Url filtered by \d+ regular expression, is lower or equal 1045.
{
"action": "Assert",
"argument": "{{$ --url --le:1045}}",
"regularExpression": "\\d+"
}assert {{$ --url --le:1045}} filter {\d+}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --url --le:1045}}",
RegularExpression = "\\d+"
};action_rule = {
"action": "Assert",
"argument": "{{$ --url --le:1045}}",
"regularExpression": "\\d+"
}var actionRule = {
action: "Assert",
argument: "{{$ --url --le:1045}}",
regularExpression: "\\d+"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --url --le:1045}}")
.setRegularExpression("\\d+");Can be tested on
Assert that <input id="input_enabled"> element is visible.
{
"action": "Assert",
"argument": "{{$ --visible}}",
"onElement": "input_enabled",
"locator": "Id"
}assert {{$ --visible}} on {input_enabled} using {id}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --visible}}",
OnElement = "input_enabled",
Locator = LocatorsList.Id
};action_rule = {
"action": "Assert",
"argument": "{{$ --visible}}",
"onElement": "input_enabled",
"locator": "Id"
}var actionRule = {
action: "Assert",
argument: "{{$ --visible}}",
onElement: "input_enabled",
locator: "Id"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --visible}}")
.setOnElement("input_enabled")
.setLocator("Id");Can be tested on
Assert that IWebDriver.WindowHandles count equals 1.
{
"action": "Assert",
"argument": "{{$ --windows_count --eq:1}}"
}assert {{$ --windows_count --eq:1}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --windows_count --eq:1}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --windows_count --eq:1}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --windows_count --eq:1}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --windows_count --eq:1}}");Can be tested on
Assert that IWebDriver.WindowHandles count not equals 0.
{
"action": "Assert",
"argument": "{{$ --windows_count --ne:0}}"
}assert {{$ --windows_count --ne:0}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --windows_count --ne:0}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --windows_count --ne:0}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --windows_count --ne:0}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --windows_count --ne:0}}");Assert that IWebDriver.WindowHandles count matches \d{1}.
{
"action": "Assert",
"argument": "{{$ --windows_count --match:\\d{1}}}"
}assert {{$ --windows_count --match:\d{1}}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --windows_count --match:\\d{1}}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --windows_count --match:\\d{1}}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --windows_count --match:\\d{1}}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --windows_count --match:\\d{1}}}");Can be tested on
Assert that IWebDriver.WindowHandles count not match 1\d+.
{
"action": "Assert",
"argument": "{{$ --windows_count --not_match:1\\d+}}"
}assert {{$ --windows_count --not_match:1\d+}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --windows_count --not_match:1\\d+}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --windows_count --not_match:1\\d+}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --windows_count --not_match:1\\d+}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --windows_count --not_match:1\\d+}}");Assert that IWebDriver.WindowHandles count is greater than 0.
{
"action": "Assert",
"argument": "{{$ --windows_count --gt:0}}"
}assert {{$ --windows_count --gt:0}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --windows_count --gt:0}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --windows_count --gt:0}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --windows_count --gt:0}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --windows_count --gt:0}}");Can be tested on
Assert that IWebDriver.WindowHandles count is lower than 10.
{
"action": "Assert",
"argument": "{{$ --windows_count --lt:10}}"
}assert {{$ --windows_count --lt:10}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --windows_count --lt:10}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --windows_count --lt:10}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --windows_count --lt:10}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --windows_count --lt:10}}");Can be tested on
Assert that IWebDriver.WindowHandles count is greater or equal 1.
{
"action": "Assert",
"argument": "{{$ --windows_count --ge:1}}"
}assert {{$ --windows_count --ge:1}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --windows_count --ge:1}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --windows_count --ge:1}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --windows_count --ge:1}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --windows_count --ge:1}}");Can be tested on
Assert that IWebDriver.WindowHandles count is lower or equal 1.
{
"action": "Assert",
"argument": "{{$ --windows_count --le:1}}"
}assert {{$ --windows_count --le:1}}
var actionRule = new ActionRule
{
Action = PluginsList.Assert,
Argument = "{{$ --windows_count --le:1}}"
};action_rule = {
"action": "Assert",
"argument": "{{$ --windows_count --le:1}}"
}var actionRule = {
action: "Assert",
argument: "{{$ --windows_count --le:1}}"
};ActionRule actionRule = new ActionRule()
.setAction("Assert")
.setArgument("{{$ --windows_count --le:1}}");