PHP Class Nearsoft\SeleniumClient\Alert

Mostrar archivo Open project: nearsoft/php-selenium-client Class Usage Examples

Public Methods

Method Description
__construct ( WebDriver $driver )
accept ( ) Accepts the alert.
dismiss ( ) Dismisses the alert.
getText ( ) : String Gets the text of the alert.
sendKeys ( String $string ) Sends keys to the alert.

Method Details

__construct() public method

public __construct ( WebDriver $driver )
$driver WebDriver

accept() public method

Accepts the alert.
public accept ( )

dismiss() public method

Dismisses the alert.
public dismiss ( )

getText() public method

Gets the text of the alert.
public getText ( ) : String
return String

sendKeys() public method

Sends keys to the alert.
public sendKeys ( String $string )
$string String