SearchContextFindElement Method |
Find the first WebElement using the given method.
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax Dim instance As SearchContext
Dim by As By
Dim timeout As Integer
Dim raise As Boolean
Dim returnValue As WebElement
returnValue = instance.FindElement(by,
timeout, raise)
Parameters
- by
- Type: SeleniumBy
Methode - timeout (Optional)
- Type: SystemInt32
Optional timeout in milliseconds - raise (Optional)
- Type: SystemBoolean
Optional - Raise an exception after the timeout when true
Return Value
Type:
WebElementWebElement or null
Examples Set elts = driver.FindElement(By.Any(By.Name("name"), By.Id("id")))
See Also