Count number of rows on web table Selenium
<p>I have a web table in a page which has only one attribute class. I want to identify number of rows in that table. I am using below code which runs but gives me the count of all web tables which have their parent class as OverviewTable:</p>

<p><a href="https://i.stack.imgur.com/xKFtD.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xKFtD.png" alt="enter image description here"></a></p>

<pre><code>int rowCount=IE1.findElements(By.xpath("//table[@class='overviewTable']/tbody/tr")).size();</code></pre>

<p>please also see the screenshot.</p>