Code: Select all
var ret;
for (var i = 1; i <= 999999; i++) {
iimPlay("macro1")
// 1) search for the word in source of the page i run it
ret = iimPlay('CODE:SEARCH SOURCE=TXT:"cool" IGNORE_CASE=YES');
// 2)if it find the word to play macro2
if (ret == 1) { // Text was found
ret = iimPlay("macro2");
}
// 3)if it will not find the word to play macro1
else if (ret != -101) {
ret = iimPlay("macro1");
}
if (ret == -101) { // User clicked the Stop button
break;
}
}
Now when it searches the word cool i got this element waiting 6 and it waits for 6 seconds to find the word cool.
I dont want to wait how can i do that.
Many thanks
Sudeep