Selector editor for control find?

Hello,

I have a question i want type to search in a website with control find to find this particular keyword, in my condition i want to indicate if 0/0 there be no result find but if 1/1 or 1/ 2 or more how can i find my selector editor ?

<wnd app='chrome.exe' />
<ctrl role='dialog' />
<ctrl name='Result 0 *' role='status bar' omit:text='No results' />
<wnd app='chrome.exe'  />
<ctrl name='Result 1 *' role='status bar' /

Am i doing correctly for my selector editor ? Or in this area is there anyway i can find this particular keyword in the website [User Exists] without ctrl + f?

Hey, you could try using the activity Get Attribute. By using it, you will be able to extract the value from name and then use the If to see if the string content validates your condition. Please check the below screenshot to see how the activity works:

Please let me know if this solves your issue!

Thanks

This could be what I am looking for
Just curious

What does contains(β€œ0”) mean

I was following your example in which you want to do something in particular if the attribute name contains a 0. In this example, the whole text from the name will be stored in a variable called yourVariable. I’m then using the string method contains so I can check if the whole string contains a 0 or not.

yourVariable.contains(β€œ0”) > If yourVariable contains a zero, then do all the actions from the Then part of the If activity. If it doesn’t contain a 0, then it will run all the activities from the Else part.

Of course, you can change the β€œ0” for the condition that better suits your needs.

Hope this helped you!

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.