-
Notifications
You must be signed in to change notification settings - Fork 0
go_to_url
Load a new web page in the current browser window. This is done using an HTTP GET operation and the method will block until the load is complete. This action supports locators, elements, attributes, macros and regular expressions.
Web, Mobile Web
| Property | Description |
|---|---|
| argument | Plugin conditions and additional information. |
| onAttribute | The element attribute from which to extract information for action execution. If not specified, information will be taken from the element inner text. |
| onElement | The locator value by which the element will be found. |
| locator | The locator type by which the element will be found. |
| regularExpression | A pattern by which the extracted information will be evaluated. Returns the first match. |
Opens the URL address using _blank property (under new tab or window).
The URL address to navigate to.
If the action
argumentis theURLto navigate to, this argument is not mandatory (see examples).
https://www.w3.org/TR/webdriver/#navigate-to
Navigate to https://gravitymvctestapplication.azurewebsites.net/uicontrols/.
{
"action": "GoToUrl",
"argument": "https://gravitymvctestapplication.azurewebsites.net/uicontrols/"
}go to url {https://gravitymvctestapplication.azurewebsites.net/uicontrols/}
// aliases (alternatives)
open {https://gravitymvctestapplication.azurewebsites.net/uicontrols/}
navigate to {https://gravitymvctestapplication.azurewebsites.net/uicontrols/}
go to {https://gravitymvctestapplication.azurewebsites.net/uicontrols/}
// option no.1
var actionRule = new ActionRule
{
Action = PluginsList.GoToUrl,
Argument = "https://gravitymvctestapplication.azurewebsites.net/uicontrols/"
};
// option no.2
var actionRule = new
{
Action = "GoToUrl",
Argument = "https://gravitymvctestapplication.azurewebsites.net/uicontrols/"
};action_rule = {
"action": "GoToUrl",
"argument": "https://gravitymvctestapplication.azurewebsites.net/uicontrols/"
}var actionRule = {
action: "GoToUrl",
argument: "https://gravitymvctestapplication.azurewebsites.net/uicontrols/"
};ActionRule actionRule = new ActionRule()
.setAction("GoToUrl")
.setArgument("https://gravitymvctestapplication.azurewebsites.net/uicontrols/");Navigate to https://gravitymvctestapplication.azurewebsites.net/uicontrols/ using _blank operation (new tab or window).
{
"action": "GoToUrl",
"argument": "{{$ --url:https://gravitymvctestapplication.azurewebsites.net/uicontrols/ --blank}}"
}go to url {{$ --url:https://gravitymvctestapplication.azurewebsites.net/uicontrols/ --blank}}
// aliases (alternatives)
open {{$ --url:https://gravitymvctestapplication.azurewebsites.net/uicontrols/ --blank}}
navigate to {{$ --url:https://gravitymvctestapplication.azurewebsites.net/uicontrols/ --blank}}
go to {{$ --url:https://gravitymvctestapplication.azurewebsites.net/uicontrols/ --blank}}
// option no.1
var actionRule = new ActionRule
{
Action = PluginsList.GoToUrl,
Argument = "{{$ --url:https://gravitymvctestapplication.azurewebsites.net/uicontrols/ --blank}}"
};
// option no.2
var actionRule = new
{
Action = "GoToUrl",
Argument = "{{$ --url:https://gravitymvctestapplication.azurewebsites.net/uicontrols/ --blank}}"
};action_rule = {
"action": "GoToUrl",
"argument": "{{$ --url:https://gravitymvctestapplication.azurewebsites.net/uicontrols/ --blank}}"
}var actionRule = {
action: "GoToUrl",
argument: "{{$ --url:https://gravitymvctestapplication.azurewebsites.net/uicontrols/ --blank}}"
};ActionRule actionRule = new ActionRule()
.setAction("GoToUrl")
.setArgument("{{$ --url:https://gravitymvctestapplication.azurewebsites.net/uicontrols/ --blank}}");Gets the text content of the element found by the given locator and pass it as URL to the current browser.
{
"action": "GoToUrl",
"onElement": "url_div",
"locator": "id"
}go to url on {url_div} using {id}
// aliases (alternatives)
open on {url_div} using {id}
navigate to on {url_div} using {id}
go to on {url_div} using {id}
// option no.1
var actionRule = new ActionRule
{
Action = PluginsList.GoToUrl,
OnElement = "url_div",
Locator = LocatorsList.Id
};
// option no.2
var actionRule = new
{
Action = "GoToUrl",
OnElement = "url_div",
Locator = "Id"
};action_rule = {
"action": "GoToUrl",
"onElement": "url_div",
"locator": "id"
}var actionRule = {
action: "GoToUrl",
onElement: "url_div",
locator: "id"
};ActionRule actionRule = new ActionRule()
.setAction("GoToUrl")
.setOnElement("url_div")
.setLocator("Id");Gets the text content of the element found by the given locator and pass it as URL to a new browser tab or window.
{
"action": "GoToUrl",
"argument": "{{$ --blank}}",
"onElement": "url_div",
"locator": "id"
}go to url {{$ --blank}} on {url_div} using {id}
// aliases (alternatives)
open {{$ --blank}} on {url_div} using {id}
navigate to {{$ --blank}} on {url_div} using {id}
go to {{$ --blank}} on {url_div} using {id}
// option no.1
var actionRule = new ActionRule
{
Action = PluginsList.GoToUrl,
Argument = "{{$ --blank}}",
OnElement: "url_div",
Locator: LocatorsList.Id
};
// option no.2
var actionRule = new
{
Action = "GoToUrl",
Argument = "{{$ --blank}}",
OnElement: "url_div",
Locator: "Id"
};action_rule = {
"action": "GoToUrl",
"argument": "{{$ --blank}}",
"onElement": "url_div",
"locator": "id"
}var actionRule = {
action: "GoToUrl",
argument: "{{$ --blank}}",
onElement: "url_div",
locator: "id"
};ActionRule actionRule = new ActionRule()
.setAction("GoToUrl")
.setArgument("{{$ --blank}}")
.setOnElement("url_div")
.setLocator("Id");Gets the href attribute value of the element found by the given locator and pass it as URL to the current browser.
{
"action": "GoToUrl",
"onElement": "url_div",
"onAttribute": "href",
"locator": "Id"
}go to url on {url_div} using {id} from {href}
// aliases (alternatives)
open on {url_div} using {id} from {href}
navigate to on {url_div} using {id} from {href}
go to on {url_div} using {id} from {href}
// option no.1
var actionRule = new ActionRule
{
Action = PluginsList.GoToUrl,
OnElement = "url_div",
OnAttribute = "href",
Locator = LocatorsList.Id
};
// option no.2
var actionRule = new
{
Action = "GoToUrl",
OnElement = "url_div",
OnAttribute = "href",
Locator = "Id"
};action_rule = {
"action": "GoToUrl",
"onElement": "url_div",
"onAttribute": "href",
"locator": "Id"
}var actionRule = {
action: "GoToUrl",
onElement: "url_div",
onAttribute: "href",
locator: "Id"
};ActionRule actionRule = new ActionRule()
.setAction("GoToUrl")
.setOnElement("url_div")
.setOnAttribute("href")
.setLocator("Id");Gets the first match from the element href attribute value, found by the given locator, filtered by the given pattern and pass it as URL to the current browser.
{
"action": "GoToUrl",
"onElement": "url_div_text",
"onAttribute": "href",
"locator": "Id",
"regularExpression": "http.*$"
}go to url on {url_div_text} using {id} filter {http.*$}
// aliases (alternatives)
open on {url_div_text} using {id} filter {http.*$}
navigate to {url_div_text} using {id} filter {http.*$}
go to on {url_div_text} using {id} filter {http.*$}
// option no.1
var actionRule = new ActionRule
{
Action = PluginsList.GoToUrl,
OnElement: "url_div_text",
OnAttribute: "href",
Locator: "LocatorsList.Id",
RegularExpression: "http.*$"
};
// option no.2
var actionRule = new
{
Action = "GoToUrl",
OnElement: "url_div_text",
OnAttribute: "href",
Locator: "Id",
RegularExpression: "http.*$"
};action_rule = {
"action": "GoToUrl",
"onElement": "url_div_text",
"onAttribute": "href",
"locator": "Id",
"regularExpression": "http.*$"
}var actionRule = {
action: "GoToUrl",
onElement: "url_div_text",
onAttribute: "href",
locator: "Id",
regularExpression: "http.*$"
};ActionRule actionRule = new ActionRule()
.setAction("GoToUrl")
.setOnElement("url_div_text")
.setOnAttribute("href")
.setLocator("Id")
.setRegularExpression("http.*$");