Finds a list of elements that match the name supplied
Namespace: OpenQA.Selenium.RemoteAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public ReadOnlyCollection<IWebElement> FindElementsByName( string name )
Parameters
- name
- Type:
System String
Name of element
Return Value
ReadOnlyCollect of IWebElement objects so that you can interact that objectImplements
IFindsByName FindElementsByName(String)Examples
IWebDriver driver = new RemoteWebDriver(DesiredCapabilities.Firefox()); ReadOnlyCollection<IWebElement> elem = driver.FindElementsByName("name")
See Also