Hi,
I’ll like to ask, what’s other solutions for selector that changes.
Example :
The value of the selector is . However after the second attempt, the value changes to . So, it will click on other selector.
I tried using “*” wildcard, anchor base, find image and finding text. It still fails.
May I know what are the other solutions to overcome problem as above?
Thanks.
Hi,
Could you share the selector not able to see in your post. Thanks.
lakshman
(Ganta lakshman)
December 22, 2021, 3:48am
3
@SukhvinWalia
You can use Regular expression or pass variable into Selector to make it as dynamic. Have a look below threads.
It is now possible to use Regular Expressions in your selectors. Follow this guide to learn how!
What’s new?
We have added extra syntax to the Selector Editor to allow for advanced configuration of your selectors.
Let’s begin
As an example, I will be creating a selector that will be able to open a file whose name is dynamically changing.
Let’s assume I am receiving daily list of bills via email which are saved as a text file named ‘bills mmddyy.txt’, e.g ‘’bills 101019’. Now, I want to writ…
This tutorial will teach you how to easily use variables in your selectors. In other words, we will be making dynamic selectors without the use of the old method of concatenating strings. How cool is that!
For the purpose of this tutorial, I will make 1 click in the Notepad app.
Feel free to also reference our documentation here .
Let’s begin!
1. First, we will indicate the element we want to click on. In this case, it will be File menu in Notepad:
[image]
This results in the…
1 Like
This is the value of the selector.
Hi,
Best practice is not to use the ID we cannot use * since each and every id represents one of the Ui element on the screen.
Use UI explorer and find out the aaname for this Ui element to uniquely identify each and every ui elment so that it always identify that properly.
1 Like
Hi,
Other than using the aaname to identify the UiElement, what else can i use?
Hi,
Is that aa name or innertext are not unique for this ui element. thanks.
I have 2 different interface that I’ll need to click on the exact same button.
For the first interface, the button can be clicked by using aaname however during the second interface, it is unable to click on the button.
Hi,
i think you have two use two different click activity. or else use element exist activity and understand which interface we are in based on that we can use correct click activity. could you pls try in this way. there should be some difference between two interfaces.
Please correct me if my understanding is wrong.
ID = 08 for first interface
ID = 09 for second interface.
in this case we can use id attribute if it never changes frequently.
use element exist activity to find out which interface we are in. use if then and else condition we can manage the click activities. please give it a try. thanks.
1 Like
system
(system)
Closed
December 26, 2021, 2:39am
10
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.