WebDriverSwitchToWindowByTitle Method
Switch focus to the specified window by title.

Namespace: Selenium
Assembly: Selenium (in Selenium.dll) Version: (
VB Usage
Dim instance As WebDriver
Dim title As String
Dim timeout As Integer
Dim raise As Boolean
Dim returnValue As Window

returnValue = instance.SwitchToWindowByTitle(title, 
	timeout, raise)


Type: SystemString
The title 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: Window
Current web driver
See Also