SearchContextFindElementByCss Method |
Finds the first element matching the specified CSS selector.
Namespace: SeleniumAssembly: Selenium (in Selenium.dll) Version: 2.0.9.0 (2.0.9.0)
SyntaxDim instance As SearchContext
Dim cssselector As String
Dim timeout As Integer
Dim raise As Boolean
Dim returnValue As WebElement
returnValue = instance.FindElementByCss(cssselector,
timeout, raise)
Parameters
- cssselector
- Type: SystemString
CSS selector - 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
See Also