Accept-Alert

Accepts the visible alert window.

Powershell

Accepts the visible alert window.

Syntax

Accept-Alert [[-sessionId] ] []

Parameters

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

Examples

Accept-Alert

C#

Declaration

OpenQA.Selenium.IAlert::Accept()

Examples

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