RemoteException wrapping UiPath.Core.BrowserOperationException: Cannot communicate with Internet Explorer browser

@loginerror Suddenly getting this error, I’ve tried all.
image
All my version:
image

IE version
image

Error:
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, CommMethod startBrowserMechanism, 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)

Please suggest.

Try running it in 64-bit mode.

Internet Explorer x64 Troubleshooting

@loginerror, can also feedback that the documentation is not updated for Open Browser:

The new version has CommunicationMethod
image
in version 2019.10.2 when you right click the “open browser” activity and search for help, you are redirected to - https://docs.uipath.com/activities/lang-en/docs/open-browser.

@Anthony_Humphries i tried still didnt work.

UiPath technical team has suggested as below:
For me it still didnt work, will update once i find a fix for this issue, meanwhile please go ahead and try.

  1. Select one of those two options and the next run of the workflow will be successful
  2. Implement one of the solutions below:
    a. Make sure the workflow contains a “Close Application” that is closing Internet Explorer when the job is complete.
    b. Set Internet Explorer to open the web pages in new tabs of the same instance instead of opening new instance for each page. This can be done from Internet Explorer by going to Tools → Internet Options → Settings and set “Start with tabs from the last session” under Startup section. However, a “Close Application” activity should exist at some point in the workflow because when too many tabs will be open the same error may occur
  3. open an elevated command line (cmd.exe with admin rights) and execute:
    regsvr32 C:\Windows\System32\oleacc.dll
    regsvr32 C:\Windows\System32\oleaut32.dll
    regsvr32 C:\Windows\SysWOW64\oleacc.dll
    regsvr32 C:\Windows\SysWOW64\oleaut32.dll
    Other Troubleshooting Steps
  4. Check with your System admin team if there were any patches that were pushed to your system. A previous situation was reported when an update that was pushed and that was prohibiting the communication to the browser, once the regedit entry for the update was deleted everything was back to normal.
  5. Reset Internet Explorer
    a. Click Start, please type “inetcpl.cpl” (without quotation marks) in the Start Search bar and press Enter to open the Internet options window.
    b. Switch to the Advanced tab.
    c. Click the Reset Internet Explorer Settings button
    d. Click Reset to confirm the operation.
    e. Click Close when the resetting process finished
    f. Uncheck Enable third-party browser extensions option in the Settings box.
    g. Click Apply, click OK.
  6. Confirm with Internal IT Team that you don’t have internal security policies/group policies triggered when Studio/Robot is accessing internet
  7. Check with Internal IT Team if any antivirus program interferes with IE
  8. Open IE → Tools->Internet Options ->Security tab → Custom level button → Scripting → Allow active scripting
  9. Add the website you are accessing to Trusted Sites in Internet Explorer (Open IE → Tools → Internet Options- > Security Tab → Trusted Sites → Sites → Add)
  10. reset IE browser settings: Tools > Internet Options > Advanced > Reset …
    you can also uninstall any Addons: Tools > Internet Options > Programs > Manage add-ons
  11. Uninstall and reinstall IE browser: Control Panel > Uninstall a program > Turn Windows features on or off > Internet Explorer 11
  12. Open IE → Tools → Internet Options- > Security Tab → uncheck “Enable Protected Mode” if checked
    Workarounds:
  13. Using hotkeys:
    Step 1: Enter Win+r using hotkeys
    Step 2: Enter “iexplore.exe” or even the entire URL
    Step 3: Click OK

Hi ANSHUL, any update of this topic?

@sebas0910, The technical team suggested to use on element appear activity or find element.

However my solution is:
1 Use the UiPath.Core.Activities.StartProcess to start Internet explorer exe file from program files.
2 Send Url as argument eg “www.abc.com
3 Use on element appear to check if the home page is loaded.
4 Attach browser and use the browser variable to pass to other workflows.

Regards
Anshul

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