cancel
Showing results for 
Search instead for 
Did you mean: 

WaitPage sometimes works incorrect

Highlighted
New Contributor

WaitPage sometimes works incorrect

Sometimes we got an error like this:



Type   Message   Time   Link

The object does not exist.   11:01:59   

You are trying to call the "Click" method or property of the "item" object that does not exist.



The place where the error raised is very usual (I've marked it with italic bold font):



  var page = ie.WaitPage(s_URL + "*", 10000);

  if(page.Exists) test2(page);



function test2(page) {

  var qSearch = page.NativeWebObject.Find("outerHTML", "*CspSearchComponent1_SearchTextBox*", "INPUT");

  qSearch.Click();

}



What we do wrong?
1 REPLY 1
Highlighted
Staff

RE: WaitPage sometimes works incorrect

Hi,



Actually, this problem has nothing to do with WaitPage. First of all, make sure that you use the correct property value and that the object tree is up-to-date. I recommend calling Page.Wait before working with the page's objects and calling Page.Refresh before Find.

------
Yuri
TestComplete Customer Care Engineer

Learn SmartBear products in a fun and easy way and prove your knowledge!
>>Participate in the TechCorner Challenge today
New Here?
Join us and watch the welcome video:
Announcements
Join TechCorner Challenge!
Want a fun and easy way to learn TestComplete? Try solving weekly TechCorner challenges and get into the Leaderboard!

Challenge Status

How to execute remote test and obtain results via Test Runner REST API

Participate!

Comparing content of HTML table with Excel file data

Participate!

Compare HTML table with Excel file and correct data in the file

Participate!

Retrieve Data from a Web Page

Participate!
Top Kudoed Authors