→ First extract the text in the webpage by using extract datatable activity and store the datatable in variable called dt.
→ Use for each row in datatable activity to iterate the each row in the datatable variable dt.
→ Inside for each insert the If condition to check the condition.
→ Inside if condition insert an assign activity to store the data of test 6 in a variable called RoleName.
→ After assign activity insert the click activity and indicate the first green arrow in the webpage when indicating it check the strict selector and uncheck the fuzzy and image.
→ Open the UI explorer and pass the RoleName variable to the aaname attribute as you done in the picture, then validate.
Then for my anchor I currently have this. I currently have a variable called “RoleName” which references to a column in my spreadsheet with the name I want to click the green arrow for (I already have Excel application scope, For Each Row & get row item set up and working for my previous steps).
In the If condition give like this, If the bot has to click on arrow which is test 6 in your case.
- Condition -> row(0).toString.equals("test 6")
Inside then block insert an assign activity to store the value of test 6.
- Assign -> Name_Value = row(0).toString
After assign activity insert click activity and indicate the first arrow, when indicating check the strict selector and uncheck the fuzzy selector and image.
After that open the Ui Explorer of Click activity and find the attribute which contains the test 1 value and replace that value with Name_Value variable and validate.
Then execute the bot and test it was clicking on correct arrow or not.
After assign activity you have to insert the click activity means inside then block only.
When you are indicating the arrow don’t indicate the anchor just indicate the target to that arrow.
If you are not aware with it, setup a zoom meet and share me the link in personal.