-
Notifications
You must be signed in to change notification settings - Fork 0
close_all_child_windows
roei sabag edited this page Jul 12, 2020
·
1 revision
Close all open tabs/windows and switch to the main (first) window.
Web, Mobile Web or any other Web Driver implementation which implements Close Window.
None
None
https://www.w3.org/TR/webdriver/#close-window
Can be tested on
Close all open tabs/windows and switch to the main (first) window.
{
"action": "CloseAllChildWindows"
}close all child windows
// option no.1
var actionRule = new ActionRule
{
Action = PluginsList.CloseAllChildWindows
};
// option no.2
var actionRule = new
{
Action = "CloseAllChildWindows"
};action_rule = {
"action": "CloseAllChildWindows"
}var actionRule = {
action: "CloseAllChildWindows"
};ActionRule actionRule = new ActionRule()
.setAction("CloseAllChildWindows");