Search Webpage for ID of Image
I need to scan a webpage to see whether or not there is an image on the webpage. I have the id of the image which is "apples", and I want the program to search the webpage for the image, and if it is not found, to go onto the next thing (which would be to start timer2).
I am not sure how I could do this and any help would be much appreciated.
Here is what I have come up with so far, its not much but it was all I knew:
Code:
Dim cap As String = WebBrowser1.Document.GetElementById("apples").GetAttribute("src")
If cap = Nothing Then
Timer2.Start()
Else
Msgbox("The Apples were found!")
End If
Re: Search Webpage for ID of Image