Dismiss-Alert

Dismiss the visible alert window.

Powershell

Dismiss the visible alert window.

Syntax

Dismiss-Alert [[-sessionId] ] []

Parameters

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

Examples

Dismiss-Alert

C#

Declaration

OpenQA.Selenium.IAlert::Accept()

Examples

driver.SwitchTo().Alert().Dismiss();
Last modified January 1, 0001