C# Class Selenium.Internal.AlertOverride

Provides methods for overriding the JavaScript alert() and confirm() methods.
Exibir arquivo Open project: krosenvold/selenium-git-release-candidate Class Usage Examples

Public Methods

Method Description
AlertOverride ( IWebDriver driver ) : System

Initializes a new instance of the AlertOverride class.

GetNextAlert ( ) : string

Gets the next JavaScript alert message.

GetNextConfirmation ( ) : string

Gets the next JavaScript confirm message.

IsAlertPresent ( ) : bool

Gets a value indicating whether a JavaScript alert is present.

IsConfirmationPresent ( ) : bool

Gets a value indicating whether a JavaScript confirm is present.

ReplaceAlertMethod ( ) : void

Replaces the JavaScript alert() and confirm() methods.

Method Details

AlertOverride() public method

Initializes a new instance of the AlertOverride class.
public AlertOverride ( IWebDriver driver ) : System
driver IWebDriver The driver to use in overriding the JavaScript alert() and confirm() methods.
return System

GetNextAlert() public method

Gets the next JavaScript alert message.
public GetNextAlert ( ) : string
return string

GetNextConfirmation() public method

Gets the next JavaScript confirm message.
public GetNextConfirmation ( ) : string
return string

IsAlertPresent() public method

Gets a value indicating whether a JavaScript alert is present.
public IsAlertPresent ( ) : bool
return bool

IsConfirmationPresent() public method

Gets a value indicating whether a JavaScript confirm is present.
public IsConfirmationPresent ( ) : bool
return bool

ReplaceAlertMethod() public method

Replaces the JavaScript alert() and confirm() methods.
public ReplaceAlertMethod ( ) : void
return void