The readyState property in QTP returns the loading status of the current browser . This property
Will be of immense help if the AUT under test has a lot of sync issues while running the script .
This property returns one of four values :
1. uninitialized(1) Has not started loading yet.
2. loading(2) Is loading
3.Interactive(3) Has loaded enough and the user can interact with it
4.complete(4) Fully loaded
close the browser once the page is loaded completely.
If Browser (Google).object.ReadyState=4 Then
Browser(Google).Close
End If
0 Comment(s)