Browser hangs in evaluation version

Ask general questions here.
chunkylover53
Posts: 23
Joined: Wed Oct 06, 2010 8:21 pm

Browser hangs in evaluation version

Post by chunkylover53 » Thu Jul 28, 2011 5:21 pm

Hi,
I'm using Ranorex Studio evaluation version 3.04 on Windows XP

When I start the script from the IDE it opens the browser (both IE and FF)and loads the page, then it hangs. The mouse becomes unresponsive. I'm not sure but I think the evaluation popup is getting in the way.
Here is my code. It never gets to the ATag statement.
Please help.
public static void  TestServiceLinks(string url)
{
	Utilities.KillAllBrowsers();
	Thread.Sleep(500);

	System.Diagnostics.Process.Start("iexplore.exe",  url);

	WebDocument remHome = "/dom[@domain='na-qa3-rem.joe-blow.com']";
	remHome.WaitForDocumentLoaded();
	ATag  sLink = remHome.FindSingle("./a[@innertext='[Service Links]']");
	sLink.Click(new Location());

}

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Browser hangs in evaluation version

Post by Support Team » Thu Jul 28, 2011 5:32 pm

chunkylover53 wrote:I'm not sure but I think the evaluation popup is getting in the way.
Automation will start only after you press the "Continue Evaluation" button on the evaluation dialog.

A quick guess: Try removing the call to WaitForDocumentedLoaded and instead specify a timeout for the FindSingle call in the next line.

Regards,
Alex
Ranorex Team
.
Image

chunkylover53
Posts: 23
Joined: Wed Oct 06, 2010 8:21 pm

Re: Browser hangs in evaluation version

Post by chunkylover53 » Thu Jul 28, 2011 5:57 pm

Hi.
I tried your suggestion and it didn't work.
The first few lines of code get executed before I click the continue evaluation button.
Not sure what to do at this point. I've never seen it hang like it does when I start debugging.
Thanks
cl53

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Browser hangs in evaluation version

Post by Support Team » Fri Jul 29, 2011 12:14 pm

Hi,

Sorry but I don't understand your issue.
chunkylover53 wrote:The first few lines of code get executed before I click the continue evaluation button.
Did you click the evaluation continue button?
chunkylover53 wrote:I've never seen it hang like it does when I start debugging.
  • Do you debug your code?
  • Ranorex is stuck if you debug?
  • Do you have a breakpoint inside your code?
  • Ranorex needs a long time to react or is it hanging forever?
Regards,
Peter
Ranorex Team
.
Image

chunkylover53
Posts: 23
Joined: Wed Oct 06, 2010 8:21 pm

Re: Browser hangs in evaluation version

Post by chunkylover53 » Fri Jul 29, 2011 9:20 pm

Hi,
Yes I click the continue button.
I solved the problem by switching from Windows XP to Windows 2008 and now I don't have the hanging problem.
Instead I get another problem. I'll put it in a separate post.
Thanks for the help.
CL53