WebDriverAlert
in package
An abstraction allowing the driver to manipulate the javascript alerts
Table of Contents
Properties
Methods
- __construct() : mixed
- accept() : WebDriverAlert
- Accept alert
- dismiss() : WebDriverAlert
- Dismiss alert
- getText() : string
- Get alert text
- sendKeys() : WebDriverAlert
- Send keystrokes to javascript prompt() dialog
Properties
$executor
protected
ExecuteMethod
$executor
Methods
__construct()
public
__construct(ExecuteMethod $executor) : mixed
Parameters
- $executor : ExecuteMethod
accept()
Accept alert
public
accept() : WebDriverAlert
Return values
WebDriverAlert —The instance.
dismiss()
Dismiss alert
public
dismiss() : WebDriverAlert
Return values
WebDriverAlert —The instance.
getText()
Get alert text
public
getText() : string
Return values
stringsendKeys()
Send keystrokes to javascript prompt() dialog
public
sendKeys(string $value) : WebDriverAlert
Parameters
- $value : string