Attach Browser 'iexplore.exe ACME': Invalid selector: <wnd app='iexplore.exe' cls='IEFrame' title='ACME System 1 - Work Items - Internet Explorer' />. Expected a <html> selector. Please make sure that you indicate a browser tab element

Dude you are a star! The solution is to only indicate web page html window but bot the entire browser window nor the tab.

Thank you :slight_smile:

9 Likes

That’s not needed - you can work inside OpenBrowser the same way you would work within AttachBrowser scope. Adding one withing the other might also confuse partial selector merging (not tested, but theoretically possible).
Only difference is if you already have the browser opened or not.

1 Like

Hello.

I have the same problem. Could you include an example of how it would look?

1 Like

Hello,

The solution is to only indicate web page html window but bot the entire browser window. It worked for me

Thanks,
Vishal

1 Like

can you send a screenshoot i can´t fix that error

Hi,

If you indicate like this selector as <wnd app='iexplore.exe' cls='IEFrame' title='Google - Internet Explorer' /> it is not working. Just indicate the window selector as <html title='Google' />. In my case i used open broweser activity and opened google page and then did attach browser activity

Thanks,
Vishal Kumar

5 Likes

that tag is for attach browser not for open browser

Hi @Antonio,

Please check out this post. I have tried my best to as detailed as possible as I had faced this issue and took quite a lot of time to figure out the issue.

Kudos! :slight_smile:

Thanks,
Nithin Prabhu

1 Like

Thanks for the great tip! Indeed, the solution is to only indicate web page html window but not the entire browser window (the chrome) nor the browser tab.

2 Likes

I’m late to this party, but this absolutely worked! Thanks so much!

Can you please explain how did you solve this issue?

Hello.
I’ve just read whole conversation, because I’m facing same issue with browser.
Unfortunately, none of the solutions worked for me. Selector based only on title isn’t even valid, and I’m still having error message that “Value does not fall within expected range…”.
A simple activity to close default tab of internet explorer seems now like a big obstacle. None of the possible selectors are working for me. I’m not able to close single tab in browser.
Does anyone face common issue now?
May it be connected with the UiPath Studio version (2018.4.5)?

Regards

Hi @olgu

Could you try this sample and let me know if it still fails?
OpenAndCloseTabs.zip (7.4 KB)

Thanks Vinay, I also faced same error and your solution worked for me.

1 Like

Instead of clicking on the UI web tab element or on the empty space by the tabs, click inside the window of the page

1 Like

Help me, i face the same error, here is my project:
Main.xaml (51.3 KB)

Thank you. This worked for me !

yes this solution works thank you

I’m having the same problem as well, generically speaking. I can’t get UiPath to select a browser.

I do see that it has wnd instead of html when I pick things. I can’t get it not to pick that. I do get an error that the extension isn’t running in chrome but it is running. I verified that.

I downloaded the OpenAndCloseTabs.zip and that didn’t work for me. I got this:

RemoteException wrapping UiPath.Core.BrowserOperationException: Cannot communicate with Internet Explorer browser. —> RemoteException wrapping System.Runtime.InteropServices.COMException: Cannot communicate with Internet Explorer browser.
at UiPath.UiBrowserClass.Open(String bstrURL,
UiBrowserFlags flag)
at UiPath.Core.Browser.Open(String url,
Boolean privateSession,
Boolean headlessSession,
Boolean defaultSession)
— End of inner exception stack trace —
at UiPath.Core.Activities.ScopeActivity.EndExecute(NativeActivityContext context,
IAsyncResult result)
at UiPath.Core.Activities.AsyncNativeActivity.BookmarkResumptionCallback(NativeActivityContext context,
Bookmark bookmark,
Object value)
at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context,
Bookmark bookmark,
Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)

I usually use Chrome and when I switch to Chrome with this project, I still get errors.

RemoteException wrapping UiPath.Core.BrowserOperationException: Cannot communicate with the browser,
please check the UiPath extension. —> RemoteException wrapping System.Runtime.InteropServices.COMException: Cannot communicate with the browser,
please check the UiPath extension.
at UiPath.UiBrowserClass.Open(String bstrURL,
UiBrowserFlags flag)
at UiPath.Core.Browser.Open(String url,
Boolean privateSession,
Boolean headlessSession,
Boolean defaultSession)
— End of inner exception stack trace —
at UiPath.Core.Activities.ScopeActivity.EndExecute(NativeActivityContext context,
IAsyncResult result)
at UiPath.Core.Activities.AsyncNativeActivity.BookmarkResumptionCallback(NativeActivityContext context,
Bookmark bookmark,
Object value)
at System.Activities.Runtime.BookmarkCallbackWrapper.Invoke(NativeActivityContext context,
Bookmark bookmark,
Object value)
at System.Activities.Runtime.BookmarkWorkItem.Execute(ActivityExecutor executor,
BookmarkManager bookmarkManager)

I see this error in the extensions

Any thoughts?

Thanks!

Hi @jgoranso

What are your Studio and activity packages versions? Have you tried with the latest activity packages?