Hello everyone!
I want to find an element using the “Select Item” and For Each (if impossible, Do While or just If) activities in order. It’s like select 1 item and look for the text(using the Check Element)if there is no text in it, go for select a specific item and if there is a text it stops.
There are like 15 items in selecting box.
Please help.
Hi, I’m using “Check Element” so if there is not, It should go for next(not in an order like first one is 3rd item of the menu and second is 7th) item of the dropdown menu.
Use Get full text activity and store it in a string variable indicate on a dropdown
Take an array_Var=Split the text using the split function
Use select item in that you give CurrentItem
Take check app state to check it has text or not
If text present:perform action
else
break
Hey @Temuulen_Buyangerel ,
You can use Get attribute activity and choose the appropriate attribute
You get all the items from the dropdown as a collection
You can then use an if activity and assign the condition as attributeVar.contains(yourVar)
Hi @Temuulen_Buyangerel - Another simple approach would be, Select Item activity throws an exception saying Item Not Found when it not able to find an item
So, you can enclose the Select Item activity in a Try Catch block, if there is an exception means, there is no item found, then retry the same activity to select the next item, else, item exists