I created a script using an extracted DataTable, a For Loop and an If Statement. Process flow below:
- Extract a table of 6 columns
- Iterate through every row and find the keyword ‘DHL’ or ‘FEDEX’ on column 2
- If the keyword ‘DHL’ or ‘FEDEX’ exists (for example, Row 3), use this row number 3 and
- Click on the word ‘View’ located in column 1
Step 1,2,3 is working perfectly. However, the script is now forgetting to click on Row 3, but keeps on going to click Row 1 (incorrect) instead.
Since View the target is the same throughout the table how can I click on the correct View in the correct row?