HumHub Documentation (unofficial)

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

Methods

getScreenOrientation()

Get the current browser orientation.

public getScreenOrientation() : string
Return values
string

Either LANDSCAPE|PORTRAIT


        
On this page

Search results