Regex in UiPath Selector

"Hello, I’m having a problem with my selector. I’m using the Attach Activity with this selector:

<wnd app='chrome.exe' title='.*(Youtube|Enterprise SSO).*' matching:title='regex' />

It seems like the selector is not able to recognize the title or something. The error I’m receiving is “Attach Browser ‘chrome.exe Enterprise’: Invalid selector: . Expected an selector. Please make sure that you indicate a browser tab element.”

Can you guys help me out?"

1 Like

Hi @Phi_Hung_Nguyen ,

When the corresponding browser or tab is open, does this Selector get validated ?

ok sorry,
I figured out the issue.

It’s because of the “wnd”.
If I change it to “html”, the issue will be resolve.

1 Like

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