PHP Class Nearsoft\SeleniumClient\Window

Show file Open project: nearsoft/php-selenium-client

Public Methods

Method Description
__construct ( WebDriver $driver )
getPosition ( ) : Array Gets current window's position
getSize ( ) : Array Gets current window's size
maximize ( ) Maximizes current Window
setPosition ( integer $x, integer $y ) Sets current window's position
setSize ( integer $width, integer $height ) Sets current window size

Method Details

__construct() public method

public __construct ( WebDriver $driver )
$driver WebDriver

getPosition() public method

Gets current window's position
public getPosition ( ) : Array
return Array

getSize() public method

Gets current window's size
public getSize ( ) : Array
return Array

maximize() public method

Maximizes current Window
public maximize ( )

setPosition() public method

Sets current window's position
public setPosition ( integer $x, integer $y )
$x integer
$y integer

setSize() public method

Sets current window size
public setSize ( integer $width, integer $height )
$width integer
$height integer