HttpWatch Automation Reference - 16.2.2
HttpWatch Namespace / Plugin Class / IsLoadingPageEx Method
Set to true to wait until the Page Load event is detected.

Set to true to wait until the Render Start event is detected.

The Render Start event may not be detected if the browser window is not visible.

The number of seconds of HTTP inactivity required, e.g. the value of 5 would indicate that no HTTP request should have been executing for 5 seconds for the wait condition to be satisfied.

Use -1 to indicate that no HTTP inactivity is required.


In This Topic
    IsLoadingPageEx Method
    In This Topic
    Reports whether the browser remains busy loading and the required completion conditions have not all been reached.
    Syntax
    'Declaration
     
    Public Function IsLoadingPageEx( _
       ByVal waitForPageLoadEvent As Boolean, _
       ByVal waitForRenderStartEvent As Boolean, _
       ByVal httpIdleSecs As Integer _
    ) As Boolean
    public bool IsLoadingPageEx( 
       bool waitForPageLoadEvent,
       bool waitForRenderStartEvent,
       int httpIdleSecs
    )

    Parameters

    waitForPageLoadEvent
    Set to true to wait until the Page Load event is detected.
    waitForRenderStartEvent

    Set to true to wait until the Render Start event is detected.

    The Render Start event may not be detected if the browser window is not visible.
    httpIdleSecs

    The number of seconds of HTTP inactivity required, e.g. the value of 5 would indicate that no HTTP request should have been executing for 5 seconds for the wait condition to be satisfied.

    Use -1 to indicate that no HTTP inactivity is required.

    Return Value

    Returns true while the browser remains busy loading and the required completion conditions have not all been reached; returns false when loading is complete.
    Remarks

    You would normally use the Controller object's Wait or WaitEx methods to wait for a page to finish loading. This property may be useful if you wanted to implement your own waiting function.

    The IsLoadingPage property is the equivalent of calling the IsLoadingPageEx method with the following parameters:

     

    IsLoadingPage/IsLoadingPageEx
    Copy Code
    // Calling IsLoadingPageEx with waitForPageLoadEvent set to true
    // and a 5 second value for httpIdleSecs
    isLoading = plugin.IsLoadingPageEx(true, false, 5);
    
    // Is the equivalent to using IsLoadingPage
    isLoading = plugin.IsLoadingPage;
    
    IsLoadingPageEx can only be used if Record has been called on the Plugin object.
    Requirements
     
    See Also