Hello Robot experts,
I am automating a windows application, when I access the module screen ‘A’ the title of the screen shows ‘Borrow Lending’ sometimes and other times shows different title ‘Repo’
Now, I would like to handle this in selector to identify when the title is ‘Borrow Lending’ or ‘Repo’. Is there any option to use OR operator ? I have found some solution using regex but this did not work.
Regex expression used:
Please assit.
Thank you.
Yoichi
(Yoichi)
September 13, 2022, 2:13am
2
Hi,
Can you share your selector string?
Regex selector will be the following.
title='.*(Repo|Borrow Lending).*' matching:title='regex'
Regards.
1 Like
Hi @rdinesh0331
Ok you can built another approach.
Get title and put if-condition and then use selector according to if-condition
Hello @rdinesh0331
Please refer to the below post.
Hi @Filip_C
Please check out these topics of recently introduced new features!
Thanks
Thanks, did not work.
Here is the selector code:
<wnd app='exceed.exe' cls='EXCEEDW:MWCLIENT0' title='.*(Repo|Borrow Lending).*' matching:title='regex' />
<ctrl name='Maximize' role='push button' />
postwick
(Paul)
September 14, 2022, 7:38pm
8
Use Get Attribute to get the title of the page into a variable, then use that value wherever you need - If, Switch, in a selector, etc.
Yoichi
(Yoichi)
September 14, 2022, 11:42pm
9
Hi,
To isolate cause, can you try the following minimal selector, then validate it in SelectorEditor with Highlight option?
<wnd app='exceed.exe' title='.*(Repo|Borrow Lending).*' matching:title='regex' />
If it works and highlights expected window, we need to find cause in other attribute or element.
Regards,