WebDriverSwitchToWindowByName Method |
Switch focus to the specified window by name.
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax Dim instance As WebDriver
Dim name As String
Dim timeout As Integer
Dim raise As Boolean
Dim returnValue As Window
returnValue = instance.SwitchToWindowByName(name,
timeout, raise)
Parameters
- name
- Type: SystemString
The name of the window to activate - timeout (Optional)
- Type: SystemInt32
Optional timeout in milliseconds - raise (Optional)
- Type: SystemBoolean
Optional - Raise an exception after the timeout when true
Return Value
Type:
WindowCurrent web driver
See Also