I want to get the total count rows of the table, discarding table header and expanded row. I had tried the code below:
var altrowCount = driver.FindElement(By.Id("resultsRepeaterGrid")).FindElements(By.TagName("tr")).Count;
Now I realized it is counting all the tr. Hoping to get some input from who had experienced this. Thanks!
I had a working protractor script which was
searchResCount = element.all(by.css('#resultsRepeaterGrid tr[class="row"], tr[class="altrow"]'));
Now how do I translate this syntax to c# webdriver language?