Window Class |
Namespace: Selenium
Dim instance As Window
The Window type exposes the following members.
Name | Description | |
---|---|---|
Activate |
Change focus to this window.
| |
Close |
Closes the current window.
| |
Equals |
Determines whether the specified instances are considered equal.
(Overrides ObjectEquals(Object).) | |
FullScreen |
Set the current window full screen.
| |
GetHashCode |
Returns the hash code
(Overrides ObjectGetHashCode.) | |
Maximize |
Maximizes the current window if it is not already maximized.
| |
Position |
Gets the position of the browser window relative to the upper-left corner of the screen.
| |
SetPosition |
Sets the position of the browser window relative to the upper-left corner of the screen.
| |
SetSize |
Sets the size of the outer browser window, including title bars and window borders.
| |
Size |
Gets the size of the outer browser window, including title bars and window borders.
| |
SwitchToNextWindow |
Switch to the next available window
| |
SwitchToPreviousWindow |
Switch to the previous focused window.
| |
SwitchToWindowByName |
Change focus to another window.
| |
SwitchToWindowByTitle |
Change focus to another window.
|
Name | Description | |
---|---|---|
Handle |
Returns the handle of the current window.
| |
Title |
Get the current page title.
|
Set win1 = driver.Window
driver.SwitchToNextWindow().Close
win1.Activate();
txt = dlg.Text
dlg.Accept