I often find that the _PageFinished event occurs way before all the elements of a page are loaded.
What I have done that seems to work much better is inject some javascript in the page when the _PageFinished event occurs, which will then trigger another event:
B4X:
Sub wv_PageFinished (URL As String)
Dim Javascript As String
Javascript="B4A.CallSub('GetTitle_Event', false, document.title)"
wve.executeJavascript(wv, Javascript)
End Sub
And this is the event sub that triggers when all the elements of a page have loaded:
B4X:
Sub GetTitle_Event(Title As String)
'page fully loaded
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.