-
Notifications
You must be signed in to change notification settings - Fork 0
close_window
roei sabag edited this page Jul 12, 2020
·
1 revision
Close the given window, quitting the browser if it is the last window currently open.
Web, Mobile Web or any other Web Driver implementation which implements Close Window.
| Property | Description |
|---|---|
| argument | The window (zero based) index while 0 is the first (main) window. |
None
https://www.w3.org/TR/webdriver/#close-window
Can be tested on
Close the given window by it's position index, quitting the browser if it is the last window currently open.
{
"action": "CloseWindow",
"argument": "2"
}close window {2}
// option no.1
var actionRule = new ActionRule
{
Action = PluginsList.CloseWindow,
Argument = "2"
};
// option no.2
var actionRule = new
{
Action = "CloseBrowser",
Argument = "2"
};action_rule = {
"action": "CloseWindow",
"argument": "2"
}var actionRule = {
action: "CloseWindow",
argument: "2"
};ActionRule actionRule = new ActionRule()
.setAction("CloseWindow")
.setArgument("2");