While using Element Exist Activity for Indicating Pop-up, sometimes it is showing Value of “Role” attribute ‘dialog’ and sometimes ‘alert’
Please suggest me a solution to use both values at once for Role Attribute of Element Exists Activity.
While using Element Exist Activity for Indicating Pop-up, sometimes it is showing Value of “Role” attribute ‘dialog’ and sometimes ‘alert’
Please suggest me a solution to use both values at once for Role Attribute of Element Exists Activity.
@Bhavesh_Batra
Try These two:
<webctrl role='dialog' | role='alert' />
<wnd app='*' role='dialog' />
<wnd app='*' role='alert' />
Not Working Sir
Showing error
Showing error, it is not working.
@Bhavesh_Batra
I suggest you another possible solutions:
role='*'
role='dialog'
.role='alert'
.role='dialog'
exists.role='alert'
exists.Thanks a lot @raja.arslankhan
Can you Please suggest a solution which involves only 1 Element Exists…??
@Bhavesh_Batra
Another method:
Did you try regex selector.
I suggest you please check Regex selector examples:
Try this one
role='(dialog|alert)'
@Bhavesh_Batra
Documentation:
https://docs.uipath.com/studio/standalone/2023.4/user-guide/regex-search
With one element exist approach is not reliable in case of two different selectors. I prefer solve it through regex selector and use one element exist.
Sir, Thanks a lot, It is working Fine Now
This is the Final Solution …
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.