Facing issue in IE launch intermittently in cloud machines

Ask general questions here.
pmaladi
Posts: 10
Joined: Thu Aug 17, 2017 9:42 pm

Facing issue in IE launch intermittently in cloud machines

Post by pmaladi » Mon Nov 27, 2017 5:14 pm

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.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3932
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Facing issue in IE launch intermittently in cloud machines

Post by odklizec » Mon Nov 27, 2017 6:52 pm

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? ;)
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

pmaladi
Posts: 10
Joined: Thu Aug 17, 2017 9:42 pm

Re: Facing issue in IE launch intermittently in cloud machines

Post by pmaladi » Fri Dec 01, 2017 8:04 pm

It worked ... thank you..