Finds the first element matching the criteria.
Namespace: OpenQA.SeleniumAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public virtual IWebElement FindElement( ISearchContext context )
Parameters
- context
- Type: OpenQA.Selenium ISearchContext
An ISearchContext object to use to search for the elements.
Return Value
The first matching IWebElement on the current context.See Also