Close-Window

Close the current window.

Powershell

Close the current window.

Syntax

Close-Window [[-sessionId] ] []

Parameters

name description
sessionId (Optional) The identifier of the session to route the command to.

Examples

Close-Window

C#

Declaration

OpenQA.Selenium.IWebDriver::void Close()

Examples

driver.Close();
Last modified January 1, 0001