HttpWatch Automation Reference - Version 15.x
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
    This method provides a finer level of control than the IsLoadingPage property as it indicates whether the current page has reached a given state.
    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 if the page has reached the required state.
    Remarks

    You would normally use the Controller object's Wait or WaitEx methods to wait for a page to be 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 = controller.IsLoadingPageEx( true, false, 5);
    
    // Is the equivalent to using IsLoadingPage
    isLoading = controller.IsLoadingPage;
    
    IsLoadingPageEx can only be used if Record has been called on the Plugin object.
    Requirements
     
    See Also