WebDriverWindow
class WebDriverWindow (View source)
An abstraction allowing the driver to manipulate the browser's window
Properties
| protected ExecuteMethod | $executor | ||
| protected bool | $isW3cCompliant | 
Methods
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.
Minimizes the current window if it is not already minimized.
Maximizes the current window if it is not already maximized
Makes the current window full screen.
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(ExecuteMethod $executor, $isW3cCompliant = false)
        
    
    No description
        
                            WebDriverPoint
    getPosition()
        
    
    Get the position of the current window, relative to the upper left corner of the screen.
        
                            WebDriverDimension
    getSize()
        
    
    Get the size of the current window. This will return the outer window dimension, not just the view port.
        
                            WebDriverWindow
    minimize()
        
    
    Minimizes the current window if it is not already minimized.
        
                            WebDriverWindow
    maximize()
        
    
    Maximizes the current window if it is not already maximized
        
                            WebDriverWindow
    fullscreen()
        
    
    Makes the current window full screen.
        
                            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