'Declaration Public Function WaitEx( _ ByVal plugin As Plugin, _ ByVal timeOutSecs As Integer, _ ByVal waitForPageLoadEvent As Boolean, _ ByVal waitForRenderStartEvent As Boolean, _ ByVal httpIdleSecs As Integer _ ) As Boolean
public bool WaitEx( Plugin plugin, int timeOutSecs, bool waitForPageLoadEvent, bool waitForRenderStartEvent, int httpIdleSecs )
Parameters
- plugin
- A reference to a Plugin object in which the page is being loaded.
- timeOutSecs
The number of seconds to wait for the current web page to finish loading or a value of -1 to specify an infinite timeout.
Values between 0 and httpIdleSecs are not valid and will cause WaitEx to return an error. If you supplied a value equal to or less than httpIdleSecs, a timeout would always occur during the first wait after loading a page.
- 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.