kzharkov
15 years agoNew 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?
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?