WebDriverWindow
class WebDriverWindow (View source)
An abstraction allowing the driver to manipulate the browser's window
Properties
protected | $executor |
Methods
No description
Get the position of the current window, relative to the upper left corner of the screen.
Get the size of the current window. This will return the outer window dimension, not just the view port.
Maximizes the current window if it is not already maximized
Set the size of the current window. This will change the outer window dimension, not just the view port.
Set the position of the current window. This is relative to the upper left corner of the screen.
Get the current browser orientation.
Set the browser orientation. The orientation should either LANDSCAPE|PORTRAIT
Details
__construct($executor)
No description
array
getPosition()
Get the position of the current window, relative to the upper left corner of the screen.
array
getSize()
Get the size of the current window. This will return the outer window dimension, not just the view port.
WebDriverWindow
maximize()
Maximizes the current window if it is not already maximized
WebDriverWindow
setSize(WebDriverDimension $size)
Set the size of the current window. This will change the outer window dimension, not just the view port.
WebDriverWindow
setPosition(WebDriverPoint $position)
Set the position of the current window. This is relative to the upper left corner of the screen.
string
getScreenOrientation()
Get the current browser orientation.
WebDriverWindow
setScreenOrientation(string $orientation)
Set the browser orientation. The orientation should either LANDSCAPE|PORTRAIT