org.openqa.selenium
Interface WebDriver.Window

Enclosing interface:
WebDriver

@Beta
public static interface WebDriver.Window


Method Summary
 Point getPosition()
          Get the position of the current window, relative to the upper left corner of the screen.
 Dimension getSize()
          Get the size of the current window.
 void setPosition(Point targetPosition)
          Set the position of the current window.
 void setSize(Dimension targetSize)
          Set the size of the current window.
 

Method Detail

setSize

void setSize(Dimension targetSize)
Set the size of the current window. This will change the outer window dimension, not just the view port, synonymous to window.resizeTo() in JS.

Parameters:
targetSize - The target size.

setPosition

void setPosition(Point targetPosition)
Set the position of the current window. This is relative to the upper left corner of the screen, synonymous to window.moveTo() in JS.

Parameters:
targetPosition - The target position of the window.

getSize

Dimension getSize()
Get the size of the current window. This will return the outer window dimension, not just the view port.

Returns:
The current window size.

getPosition

Point getPosition()
Get the position of the current window, relative to the upper left corner of the screen.

Returns:
The current window position.


Copyright © 2011. All Rights Reserved.