I´m using the Ranorex (Version: 3.2.2)
I want to start the IE (Version: Internet Explorer 8.0) and do some testings on a website.
But my problem is, that the IE-Module doesn´t work everytime. Sometimes it works and sometimes not. The problem is, that the Web Page is not loaded, but Ranorex finishes the Module and continues with the next, while the page is not loaded yet.
Is there a problem with the function: waitForDocumentLoaded()?
I also try, to wait for an element on a website, but that also doesn´t work, really well.
Here is the Code:
repository.ip = ip; Host.Local.OpenBrowser(ip, browser, true, true); repository.WebDocumentSFG500.Self.WaitForDocumentLoaded(); Report.Info("WaitForDocumentLoaded()"); Report.Screenshot(); Report.Info("Browser state: "+repository.WebDocumentSFG500.Self.State); int retryCounter = 0; while (repository.SFG500_Top_Menu.TableTagTopMenu.ATag.Network_ATagInfo.Exists() == false) { Report.Info("retryCounter: "+retryCounter.ToString()+" TableTagTopMenu.ATag.Network_ATagInfo.Exists() == false"); Report.Screenshot(); Thread.Sleep(10000); Keyboard.Press(System.Windows.Forms.Keys.F5); if(retryCounter > 10) { Report.Failure("The Element 'Network' cannot be found "); Report.Screenshot(); break; } } Report.Screenshot(); Report.Info(repository.SFG500_Top_Menu.TableTagTopMenu.ATag.Network_ATagInfo.Exists().ToString());Can someone help me with this problem ?