Iterate Table Data
Combine .all() with locator chaining to iterate rows and cells.
Task:
- Navigate to
https://testkru.com/Elements/Tables - Get all data rows from the employee table
- For each row, get the name (first td) and age (second td)
- Print only the first 3 employees
Expected output:
John Smith - 30 Jane Doe - 25 Bob Johnson - 35
TestKru