Page 1 of 1

Problems with OpenBrowser starting IE on Virtual Desktop

Posted: Thu Apr 16, 2020 10:41 am
by Polariteit
Hi there,

We are using Ranorex for a large amount of testcases for about 2yrs now, and it's working fine on our Fatclient-setup. We have several machines, and start scripts on other machines using the ranorex agent.

No we're starting to use Virtual Desktops, and I've installed Ranorex 9.3.1 on it.

Unfortunately it is not possible to use the usercode that we've built to start the webapplication usings IE11 that works fine on our fatclients.

This module looks like this and it doesn't work no the VDI. When running this part, it says 'failed to open URL in IE. Access denied'

Code: Select all

//Host.Current.OpenBrowser("http://"+ TestSuite.Current.Parameters["Omgeving"] + "URL", "ie", "", true, true, true, false, true);
Only after making some changes in the parameters it succeeds:

Code: Select all

  Host.Local.OpenBrowser("http://"+ TestSuite.Current.Parameters["Omgeving"] + "URL", "ie", "", false, true, false, false, false);


On VDI we're using Win10, IE11 and Ranorex 9.3.1. The IE11 plugin is also installed.

Do you have any suggestions? I also tried running Ranorex in Admin-mode, and it gave another error: Failed to get rows from data source: Failed to load Excel data. Microsoft Excel .....

Re: Problems with OpenBrowser starting IE on Virtual Desktop

Posted: Mon Apr 20, 2020 8:17 am
by odklizec
Hi,

This post should help you with "Access denied" error:
https://www.ranorex.com/forum/ranorex-h ... tml#p46121
Basically, it's timing error and adding short delay before OpenBrowser action should help with Access denied error, caused byt "KillExisting" option. Hope this helps?