WebDriverSwitchToFrame Method
Switch focus to the specified frame, by index(zero based), name or WebElement.

Namespace: Selenium
Assembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax
VB Usage
Dim instance As WebDriver
Dim identifier As Object
Dim timeout As Integer
Dim raise As Boolean
Dim returnValue As Boolean

returnValue = instance.SwitchToFrame(identifier, 
	timeout, raise)

Parameters

identifier
Type: SystemObject
The name, index(zero based) or WebElement
timeout (Optional)
Type: SystemInt32
Optional timeout in milliseconds
raise (Optional)
Type: SystemBoolean
Optional - Raise an exception after the timeout when true

Return Value

Type: Boolean
Current web driver
See Also