|
-
Jan 4th, 2010, 09:52 PM
#1
Thread Starter
Lively Member
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
-
Jan 6th, 2010, 08:53 PM
#2
Thread Starter
Lively Member
Re: Search Webpage for ID of Image
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|