| || |
What is workaround behind this function
do you mean what does this do or how to avoid this ?
I want to use this function effectively.
When i use the function, make to wait for a page loading.
sometimes the execution continues to next line even before the page loads.
Is there any way in silktest to wait until the page loads in browser (instead of using sleep)
When i use sleep, though the page loads or not in specified time, the control will be transfered to next line.
I need to wait until the browser loads page that to maximum for a specified time.
I have noticed this behavior at times. But luckily for me this has always worked fine and returns control after the full load. It seems this function depends on the status or the browser - done or not and not actually on whether the page has fully loaded.
Using sleep is improper as you rightly pointed out.
Here's one thing you can use.
Pick up and object that you think loads up last.
Wait for the existence of the object in a while loop.
Thanks and Regards,
I have also had unreliable results from BrowserWaitForReady. Instead I define iWait as 0.
Then I look for a specific object on the page that assures me the page has loaded.
while !myObject.Exists() && iWait < 10