Currently, I am engaged in the development of a web client-GUI-automation testing tool using selenium with x-path and CSS.
The web client features a panel area located at the bottom. Within this panel lies a table that lacks a unique identifier for its rows.
Here's the scenario: Upon adding a virtual machine (VM) via the web client GUI and clicking on the finish button, the table within the lower panel will display the task initiation details in its first row.
The table structure includes columns such as task name, date, and target in row[1]. When only one task is in progress, there will be a single row containing these details.
In order to verify the task commencement, I check if tr[1]td[1] = "Create_Vm"
.
However, when multiple VMs are created simultaneously – let's say 3 VMs (vm1, vm2, vm3) – the table would include:
tr[1]td[1]
tr[2]td[1]
tr[3]td[1]
- All labeled as create_vm.
The challenge arises when attempting to track a specific task - like vm2 - since there isn't a unique ID for the table row. How can this tracking be achieved using selenium-xpath-css?