Finds the first element matching the specified CSS selector.
Namespace: OpenQA.Selenium.RemoteAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public IWebElement FindElementByCssSelector( string cssSelector )
Parameters
- cssSelector
- Type:
System String
The id to match.
Return Value
The first IWebElement matching the criteria.Implements
IFindsByCssSelector FindElementByCssSelector(String)See Also