While loop help

Hello, I need to make a loop which stops when finding the FONASA option in a drop-down button, as seen in the image, I have a find element which has this selector

“”

inside the cycle with a keyboard shortcut add the DOWN to go down the selection (it is a program, not a browser)

How can I make it so that when passing through the word “FONASA” it stops the cycle?

since if I leave it inside the while it throws an error because when performing the down to download it throws

Search for element ‘SSDataWidgetsEdit’: Activity timed out.

But of course if when you search to complete your step of the cycle you don’t find it, any ideas? Another strange thing is that if I leave it ready for the screen to detect it, it skips it and continues with the next options

Try adding delay between two steps

And can you share the properties of the find element activity?

Instead of this you can use select item from menu activity
It will allow u to select value from drop down
Try to use modern activity first @esteban_herrera

Hello

Have you tried a “Type Into” for that dropdown. Try typing in “FONASA” and see is that works.

Sometimes dropdowns let you type in a value you want to select.

Cheers

Steve

I hope I understood the question suggest below steps

use click to open the drop down menu

use get text to get all options from the drop menu

change if condition to check if the scrapped text contains that word and if true use continue to go to next row or break to stop the entire loop

also in some cases and some application computer vision works better