SearchContextIsElementPresent Method
"Verifies that the specified element is somewhere on the page."

Namespace: Selenium
Assembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
Syntax
VB Usage
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: Boolean
true if the element is present, false otherwise
See Also