Window Class
Window object
Inheritance Hierarchy
SystemObject
  SeleniumWindow

Namespace: Selenium
Assembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax
VB Usage
Dim instance As Window

The Window type exposes the following members.

Methods
  NameDescription
Public methodActivate
Change focus to this window.
Public methodClose
Closes the current window.
Public methodEquals
Determines whether the specified instances are considered equal.
(Overrides ObjectEquals(Object).)
Public methodFullScreen
Set the current window full screen.
Public methodGetHashCode
Returns the hash code
(Overrides ObjectGetHashCode.)
Public methodMaximize
Maximizes the current window if it is not already maximized.
Public methodPosition
Gets the position of the browser window relative to the upper-left corner of the screen.
Public methodSetPosition
Sets the position of the browser window relative to the upper-left corner of the screen.
Public methodSetSize
Sets the size of the outer browser window, including title bars and window borders.
Public methodSize
Gets the size of the outer browser window, including title bars and window borders.
Public methodSwitchToNextWindow
Switch to the next available window
Public methodSwitchToPreviousWindow
Switch to the previous focused window.
Public methodSwitchToWindowByName
Change focus to another window.
Public methodSwitchToWindowByTitle
Change focus to another window.
Top
Properties
  NameDescription
Public propertyHandle
Returns the handle of the current window.
Public propertyTitle
Get the current page title.
Top
Examples
Set win1 = driver.Window
driver.SwitchToNextWindow().Close
win1.Activate();
txt = dlg.Text
dlg.Accept
See Also