I click on the magnifier icon and input my data from an excel which is linked via an excel application scope using For each loop.
Once I complete that activity, I need to click on the next magnifier option to add the next line item from the excel, which I am not able to achieve and it again clicks on the same magnifier icon.
How can I click on the magnifier on an incremental basis, till my for loop executes pls?
@The_Falcons We would have to look at the selector of the Magnifier Icon Element. Can you use the Click Activity to Indicate the Element and Open the Selector in UiExplorer with the Element being validated and send a Screenshot of the UiExplorer. In this way we can identify the relation for the increment Number and modify that attribute.
@supermanPunch Yes it does
But, when i run it in a for each loop, how will it select the magnifier in an incremental way pls? First magnifier for the first loop, then second for the second and same till the loop ends.
There are two things that you have to keep intact i.e the Number of Excel Rows and the Number of rows in the Website needs to be the same. If not same then you might need to use the Number of Excel rows as the Highest Limit to Select the Magnifier Element.
I take that you would be using a For Each Row to loop through the rows in Excel, you can also assign an index to the For Each Row which you can then use as an incremental variable inside the Selector, so that each time it gets Incremented and Selects the Next Magnifier Icon.
Also Keep in mind that the index in For Each Row Loop Starts from 0, you might have to add 1 to it before using it inside the selector.
So it’s better to use an another variable called counter to be used in the Selector