WebDriverWindow
in package
An abstraction allowing the driver to manipulate the browser's window
Table of Contents
Properties
- $executor : ExecuteMethod
- $isW3cCompliant : bool
Methods
- __construct() : mixed
- fullscreen() : WebDriverWindow
- Makes the current window full screen.
- getPosition() : WebDriverPoint
- Get the position of the current window, relative to the upper left corner of the screen.
- getScreenOrientation() : string
- Get the current browser orientation.
- getSize() : WebDriverDimension
- Get the size of the current window. This will return the outer window dimension, not just the view port.
- maximize() : WebDriverWindow
- Maximizes the current window if it is not already maximized
- minimize() : WebDriverWindow
- Minimizes the current window if it is not already minimized.
- setPosition() : WebDriverWindow
- Set the position of the current window. This is relative to the upper left corner of the screen.
- setScreenOrientation() : WebDriverWindow
- Set the browser orientation. The orientation should either LANDSCAPE|PORTRAIT
- setSize() : WebDriverWindow
- Set the size of the current window. This will change the outer window dimension, not just the view port.
Properties
$executor
protected
ExecuteMethod
$executor
$isW3cCompliant
protected
bool
$isW3cCompliant
Methods
__construct()
public
__construct(ExecuteMethod $executor[, mixed $isW3cCompliant = false ]) : mixed
Parameters
- $executor : ExecuteMethod
- $isW3cCompliant : mixed = false
fullscreen()
Makes the current window full screen.
public
fullscreen() : WebDriverWindow
Return values
WebDriverWindow —The instance.
getPosition()
Get the position of the current window, relative to the upper left corner of the screen.
public
getPosition() : WebDriverPoint
Return values
WebDriverPoint —The current window position.
getScreenOrientation()
Get the current browser orientation.
public
getScreenOrientation() : string
Return values
string —Either LANDSCAPE|PORTRAIT
getSize()
Get the size of the current window. This will return the outer window dimension, not just the view port.
public
getSize() : WebDriverDimension
Return values
WebDriverDimension —The current window size.
maximize()
Maximizes the current window if it is not already maximized
public
maximize() : WebDriverWindow
Return values
WebDriverWindow —The instance.
minimize()
Minimizes the current window if it is not already minimized.
public
minimize() : WebDriverWindow
Return values
WebDriverWindow —The instance.
setPosition()
Set the position of the current window. This is relative to the upper left corner of the screen.
public
setPosition(WebDriverPoint $position) : WebDriverWindow
Parameters
- $position : WebDriverPoint
Return values
WebDriverWindow —The instance.
setScreenOrientation()
Set the browser orientation. The orientation should either LANDSCAPE|PORTRAIT
public
setScreenOrientation(string $orientation) : WebDriverWindow
Parameters
- $orientation : string
Tags
Return values
WebDriverWindow —The instance.
setSize()
Set the size of the current window. This will change the outer window dimension, not just the view port.
public
setSize(WebDriverDimension $size) : WebDriverWindow
Parameters
- $size : WebDriverDimension
Return values
WebDriverWindow —The instance.