Home > Language Reference > System Variables > PageSynchroLevel

#PageSynchroLevel

The #PageSynchroLevel system variable allows a loose way to check the ready status of a Web page or an HTML element.

Usage

Always use the default value, and if on one specific page, a UsePage fails whereas the specified page seems fully loaded, then experiment the #PageSynchroLevel = 1.

Syntax

#PageSynchroLevel=0

or

#PageSynchroLevel=1

Remarks

If #PageSynchroLevel=0 (default value), at execution of any WinTask x64 Web function which uses a synchronization, the HTML element or Web page to wait for, is seen ready for an action by a WinTask x64 Web function only if the Document readystate property is complete AND if the Browser readystate is complete.

If #PageSynchroLevel=1, at execution of any WinTask x64 Web function which uses a synchronization, the HTML element or Web page to wait for, is seen ready for an action by a WinTask x64 Web function if the Document readystate property is interactive (or complete) AND if the Browser readystate is interactive (or complete).

Interactive means : has loaded enough and the user can interact with it. Complete means : fully loaded.

See also

ActionTimeout
BitmapPrecision
CurrentLine
DbDateFormat
DecimalSeparator$
ErrorCode
ErrorFunction$
ErrorLine$
ErrorMsg$
ErrorScript$
ExecTimeout
ExecuteDelay
FTPTimeout
HideIcon
HideTrayIcon
HTMLBrowser$
HTMLPosRetry
IgnoreErrors
IgnoreHTMLCase
LastErrorLine
LastErrorLine$
PauseTimeout
Precision
ScriptAfterTimeout$
SendKeysDelay
UseExact
UsePageExact

Example

#PageSynchroLevel=1