Count Table Rows
Use locator.count() to count matching elements.
Task:
- Navigate to
https://testkru.com/Elements/Tables - Count the data rows in
#employeeTable tbody tr - Count the header rows in
#employeeTable thead tr - Print both counts
Expected output:
Data rows: 5 Header rows: 1
TestKru