Skip to content
CodeKruPro

Get Specific Table Cell Value

65/70

Get Specific Table Cell Value

Table cells have IDs like emp1Name, emp3Dept, etc.

<tr>
  <td id="emp1Name">John Smith</td>
  <td id="emp1Age">30</td>
  <td id="emp1Dept">Engineering</td>
  <td id="emp1Salary">$80,000</td>
</tr>

Task:

  1. Navigate to https://testkru.com/Elements/Tables
  2. Get employee 1's name
  3. Get employee 3's department
  4. Get employee 4's salary

Expected output:

Employee 1 Name: John Smith
Employee 3 Dept: Sales
Employee 4 Salary: $85,000