Webbrowser -> element exists ?
I am using Webbrowser control to fill few values from database.
VB Code:
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
Dim HTML As HTMLDocument
If (pDisp Is WebBrowser1.Application) Then
Set HTML = WebBrowser1.Document
HTML.All.Item("User").Value = "userid"
End if
end sub
In the document complete event i am filling up few text box values.
Is there any way to check if the element exists in the page or not ?
For example only if the "User" element is found i need to fill the value.
Please help..
Re: Webbrowser -> element exists ?
VB Code:
If (Not HTML.All.Item("User") Is Nothing) Then
'This should work
end if