SearchContextIsElementPresent Method |
"Verifies that the specified element is somewhere on the page."
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 returnValue As Boolean
returnValue = instance.IsElementPresent(by,
timeout)
Parameters
- by
- Type: SeleniumBy
An element loctor. string or By object - timeout (Optional)
- Type: SystemInt32
Optional timeout in milliseconds
Return Value
Type:
Booleantrue if the element is present, false otherwise
See Also