Results 1 to 2 of 2

Thread: Search Webpage for ID of Image

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2009
    Posts
    71

    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

  2. #2

    Thread Starter
    Lively Member
    Join Date
    Aug 2009
    Posts
    71

    Re: Search Webpage for ID of Image

    Bump:

    Any one, please.

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
  •  



Click Here to Expand Forum to Full Width