Finds the first of elements that match the link text supplied
Namespace: OpenQA.Selenium.RemoteAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public IWebElement FindElementByLinkText( string linkText )
Parameters
- linkText
- Type:
System String
Link text of element
Return Value
IWebElement object so that you can interact that objectImplements
IFindsByLinkText FindElementByLinkText(String)Examples
IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox()); IWebElement elem = driver.FindElementsByLinkText("linktext")
See Also