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 ReadOnlyCollection<IWebElement> FindElementsByLinkText( string linkText )
Parameters
- linkText
- Type:
System String
Link text of element
Return Value
IWebElement object so that you can interact that objectImplements
IFindsByLinkText FindElementsByLinkText(String)Examples
IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox()); ReadOnlyCollection<IWebElement> elem = driver.FindElementsByLinkText("linktext")
See Also