| || |
Regarding vbscript While(browser.busy) Automation
I am trying to automate one web application using just vbscript (No QTP or any other testing tools). And I have encountered one problem with while br.busy loop. Below is the sample code that I have tried,
As in above script, While loop works only once and second time it comes out. It means the loop is not looping until the browser is busy ( page completed downloading). I checked up by putting MsgBox br.readyState inside the loop and outside but I got readystate=1 at first time and then I got readystate=4 even though page was not completely downloaded. How to overcome it ? because I want to halt my script until the full page downloaded.
Re: Regarding vbscript While(browser.busy) Automation
Ah ! The hint is , I wrote some code that will keep checking the readystate of the page and writes it to file, The readystate values of the page are as below
First its 1
After some time its 4
And after some time its 3
And after some time its 4,
Thus the loop exits when it's 4 in second line and once again it becomes 3 that makes it throw error. Looks like I am typing a little bit complex Sorry for that.