Skip to content

close_browser

roei sabag edited this page Jul 12, 2020 · 1 revision

Description

Quits this driver, closing every associated window.

Scope

Web, Mobile Web, Mobile Native or any other Web Driver implementation which implements Delete Session.

Properties

None

Command Line Arguments (CLI)

None

W3C Web Driver Protocol

https://www.w3.org/TR/webdriver/#delete-session

Examples

Example no. 1

Can be tested on

Quits this driver, closing every associated window.

Action Rule (JSON)

{
    "action": "CloseBrowser"
}

Rhino Literal

close browser

CSharp

// option no.1
var actionRule = new ActionRule
{
    Action = PluginsList.CloseBrowser
};

// option no.2
var actionRule = new
{
    Action = "CloseBrowser"
};

Python

action_rule = {
    "action": "CloseBrowser"
}

Java Script

var actionRule = {
    action: "CloseBrowser"
};

Java

ActionRule actionRule = new ActionRule().setAction("CloseBrowser");

Clone this wiki locally