I have a table with X rows in an HTML web page. How do I count the number of rows using Selenium Java and CSS or XPath expressions?
Example of my table:
<tbody id="MyTableId">
<tr> First Data row</tr>
<tr> 2nd Data row</tr>
<tr> 3rd Data row<tr>
</tbody>