readyState Property

The readyState property is a string value that indicates the current state of the object.

Note that the readyState property is applicable to any DOM element. Both examples below are equally valid, and both will display the readyState of the object to which they belong.

The examples are written in VBScript. To write similar code in Python, use the print method instead of msgbox and adjust the syntax as necessary.

Copy code
msgbox Browser("Browser").Page("Page").Object.readyState

and

Copy code
msgbox Browser("Browser").Page("Page").Link("Link").Object.readyState

An object's state is initially set to uninitialized, and then to loading. When data loading is complete, the state of the link object passes through the loaded and interactive states to reach the complete state.