Unable to find out the browser if application needs to run in Edge ( IE mode)

I am facing an issue in attaching browser if the application needs to open in Edge browser and it should be in IE mode.
Below is the Screen-shots

  1. Edge container where you will get the access of controls only.

  2. But when you try to access the element. the Dom gets modified as IExplore.exe

  3. Application screen shot when i highlight , it is successfully gets highlighted

  4. But when i try to run I am getting an error:
    RemoteException wrapping UiPath.Core.BrowserOperationException: Invalid selector: . Expected a selector. Please make sure that you indicate a browser tab element. —> RemoteException wrapping System.Runtime.InteropServices.COMException: Invalid selector: . Expected a selector. Please make sure that you indicate a browser tab element.
    at UiPath.UiBrowserClass.Find(String bstrSelector)
    at UiPath.Core.Browser.Find(Selector selector,
    IPlaceholderResolver placeholderResolver)
    — 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)

1 Like

Hey @manish.soni

Hope you are also passing a proper selector in the container activity (Attach browser or window) along with your child activities (Type Click…) inside it.


This code was working well in production from last 1 year and recently there is a change where in browser needs to be changed to Edge instead of IE and there are little changes moreover the selectors are same. the error occurred while attaching a browser

Below is the screen-shot of error :

Error Message
Attach Browser ‘AWD Chorus on Edge’: Cannot find the UI element corresponding to this selector:

1 Like

Hmm this doesn’t look like the selector I’d expect to see on an Edge window. How are you selecting the browser? By clicking on the title bar along the top? I’d expect it to have the application name (msedge.exe) and the title in there. Something like this;
<html app='msedge.exe' title='<page title' />

Is the Edge extension definitely installed & activated too?

That’s what i have explained Refer Screenshot 1 and 2 where i have explained.

  1. When you want to access the controls it is available on Edge moreover the list and everything is not available now when you inspect the element the it is converted into Iexplore because Edge is running in IE mode.
    I have tried below properties and it is not working and not validated:
Thus i have modified the selectors :
1 Like

Hey @manish.soni

So you mean, your selectors are getting validated but not running and also you are running the site in Edge with IE compatibility enabled.


Yes that’s correct, and it is mandatory because only Edge with IE mode works for this application and we can’t use any other browser.

1 Like

I’ve had to work with a program that was also required to run in IE mode in Edge. I feel your pain.

I had a lot of trouble with Attach Browser for that reason. I switched to using Attach Window to improve the performance. Have you tried using Attach Window instead of Attach Browser?

Because Edge uses an iFrame build up, the Attach Browser was more grief than an industrial supply of tissues could cover. Attach Window activity limited the tissue usage significantly.

That’s nice suggestion , but will it work like browser then ? Is it working for you. If i use Attach window instead of Attach browser. What will be the repercussion, I am skeptical because i need to perform lot of operation in that browser.

Sorry for the delayed response. I have not found any direct repercussions. All my browser activities are working as expected when using Attach Window, instead of Attach Browser.