UI INTERACTION FOR CLICK ON AN ELEMENT THAT HAVE/CONTAINS WORDS IN DIFFERENT PARTS OF IT

abmateu

New member
I would like to receive help in this automatism that I am trying to create. I need to click on an app screen element only if it contains two texts that appear sometimes. These two texts are not linked, one appears at the top of the element and the other appears at the bottom of the element. I need to click on that element if both texts appear and one of those texts contains part of that text.
I don't know how to do it with UI interaction because the two texts appears on the same element but are located in diferent parts of it. Is it possible to make a single UI interaction to click on an element that has two words located in different parts of the same element and of which one of them only contains part of the total word?
 

FrameXX

Well-known member
I think you could try this setup. Use * wildcard between the 2 text parts. It stands for any number of any characters. That means there can be anything between these 2 texts. Use the same for UI interaction.

Test.png
 

abmateu

New member
Thanks for your help @FrameXX , it works. Now i want to know how can i set that the text that i want to put as a Screen Content trigger needs to be 100% equal (Matches) with the word that i want and not only contains part of that text. Is it possible to set the text in screen content trigger like in UI interaction where you have the option of contains or matches?
Thanks
 

abmateu

New member
Thanks for your help @FrameXX , it works. Now i want to know how can i set that the text that i want to put as a Screen Content trigger needs to be 100% equal (Matches) with the word that i want and not only contains part of that text. Is it possible to set the text in screen content trigger like in UI interaction where you have the option of contains or matches?
Thanks
I think that desabling Case insesitive it's the option for that
 

FrameXX

Well-known member
Is it possible to set the text in screen content trigger like in UI interaction where you have the option of contains or matches?

The screen content uses 'contains' at all times. If you want to match only some very specific text, it's best measure to use as much as possible text for comparison in the screen content trigger. As I don't know what exactly are you trying to match only, this is all I can tell you.
 
Top