How can I count and select some rows in a Web table using Selenium?
问题 I'm developing an Automation test using Selenium WebDriver and Java, I need to assured that there are items in the web table, and select one of those items, but the ID is dynamic. HTML code: <table class="datagrid-btable" cellspacing="0" cellpadding="0" border="0" style="table-layout: auto;"> <tbody> <tr id="datagrid-row-r4-2-0" datagrid-row-index="0" class="datagrid-row datagrid-row-selected"> <td field="PLANT_CODE" style="display:none;"> <div style="text-align: left;" class="datagrid-cell