Page 1 of 1

Facing issue in IE launch intermittently in cloud machines

Posted: Mon Nov 27, 2017 5:14 pm
by pmaladi
Hello,

we are using cloud machines to run our scripts, intermittently scripts are failing due to access denied, but the same scripts are running good if we are running it again in the same machines.

code used:

Code: Select all

Host.Local.OpenBrowser(RequestedURL,"IE",true,true);
displayed with below message:

Failed to open URL 'http://cnctxocea1002:8081/cc-webgui/app' with browser IE.
Access is denied


Show/Hide Stacktrace
at Ranorex.Host.OpenBrowser(String url, String browserName, String browserArgs, Boolean killExisting, Boolean maximized, Boolean clearCache, Boolean incognitoMode, Boolean clearCookies) at Ranorex.Host.OpenBrowser(String url, String browserName, Boolean killExisting, Boolean maximized) at OCOE.OCoELibrary.LaunchHPCC(String RequestedURL) in c:\Users\bkrafft\AppData\Local\RBaD\803248\OCOE\OCOE\LibraryFiles\OCoELibrary.cs:line 169 at OCOE.TestCases.IDCards_IFP.IDCards_IFP_Smoke.runSmoke(String ID).

Please suggest better approach if any.

Re: Facing issue in IE launch intermittently in cloud machines

Posted: Mon Nov 27, 2017 6:52 pm
by odklizec
Hi,

The issue is caused by enabled Kill Existing flag in Open Browser action. The solution is to add a short delay before Open Browser action, as discussed here:
https://www.ranorex.com/forum/ranorex-h ... tml#p46121
Hope this helps? ;)

Re: Facing issue in IE launch intermittently in cloud machines

Posted: Fri Dec 01, 2017 8:04 pm
by pmaladi
It worked ... thank you..