class WebDriverAlert (View source)

An abstraction allowing the driver to manipulate the javascript alerts

Properties

protected ExecuteMethod $executor

Methods

__construct(ExecuteMethod $executor)

No description

accept()

Accept alert

dismiss()

Dismiss alert

string
getText()

Get alert text

sendKeys(string $value)

Send keystrokes to javascript prompt() dialog

Details

__construct(ExecuteMethod $executor)

No description

Parameters

ExecuteMethod $executor

WebDriverAlert accept()

Accept alert

Return Value

WebDriverAlert

The instance.

WebDriverAlert dismiss()

Dismiss alert

Return Value

WebDriverAlert

The instance.

string getText()

Get alert text

Return Value

string

WebDriverAlert sendKeys(string $value)

Send keystrokes to javascript prompt() dialog

Parameters

string $value

Return Value

WebDriverAlert