Check for certain words in a selectors element?

Good day

In a Click activity, three languages can appear in the blue field where the BOT should click. Either Fermer, Close or Chiudere.

How can I specify the three options in the selector? I have already tried this with REGEX, but unfortunately it does not work.

Does anyone have any ideas? I have used the text “User-defined status” and “Actions” as anchors, which always remain the same. Only the word in the blue field can appear in three languages.

image
image
image

@moritz.seiler,

Use parallel activity and inside it use 3 check app states with 3 languages selectors.

Inside each check app state add Click activity specific to the language

This way bot will save time to find correct language and parallelly check all 3 languages.

Thanks,
Ashok :slight_smile:

Hi @moritz.seiler ,

I tried it using the Regex pattern, and it worked.
Are you getting the names/text of the button in any property
Selector:


Also can you try to remove the * present over there and keep the same formatting in the selector, I see that the button has all the values in caps?

Hi @moritz.seiler
Try using this expression for aaname: ‘*(Chiudere|Schliessen|Fermer)*’

Hi @adiijaiin

Yes, the text is in caps.
I just did this in UI Explorer:

Then i save it and edit the selector:

What do I have to write in Text is?
image

hi @moritz.seiler

Use Strict Selector, Remove the anchors and try again.

Hi @adiijaiin

Like this? Then i get the message, validation can not be performed if the current selection is invalid. I removed the anchors.

image

@moritz.seiler
working with regex can help in such scenarios and we used a lot in projects running within the production

we noticed the shift between uppercase/lowercase within the samples. Just be very strict and/or make it case-insensitive

prototypings can also be done very quickly within a standalone UiExplorer (einfach im Design Ribbon den UiExplorer öffnen). As menitioned also by others, focus on the strict Selector only