This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I found example 2 on the web but it was not exactly what i needed. so.. I put together example 1. | |
C# Example 1 | |
public void VerifyTable(string header, string expected) | |
{ | |
IWebElement table = _driverWithJs.FindElement(By.XPath("//div[@id='main']/table")); | |
ReadOnlyCollection<IWebElement> allRows = table.FindElements(By.TagName("tr")); |