Reputation:
I am able to do this in one line using Java.
Java:
List<WebElement> colElements;
WebElement rowElement;
//some code
colElements.addAll(rowElement.findElements(By.tagName("td")));
C#:
IList<IWebElement> colElements;
IWebElement rowElement;
//some code
colElements.addAll(rowElement.FindElements(By.TagName("td")));
Clearly, there isn't a method called addAll in the IList interface in C#.
I'm hoping there is another way to do this in one line.
Thanks all!
Upvotes: 0
Views: 688