if somthing exists

How would I check if something exists on a web page that is displayed in my app.


Answer this question

if somthing exists

  • Constantijn Enders

    I want to see if an image exists on a web page, the one this is in my app.

  • R. Muti

    Private Function DocContains(ByVal Criteria As String) As Boolean

    Dim wb As New WebBrowser

    wb.Navigate("http://www.google.com")

    Dim HTMLContent As String = wb.DocumentText

    If HTMLContent.Contains(Criteria) Then

    Return True

    Else

    Return False

    End If

    End Function



  • Rajeeshun

    This is really not clear. Do you know the web page that the image might be on How would the image in your app be in the web page You need to provide further details.

  • ThEpRoPhEcY373

    I gust want my app to navigate to google.com and look to see if logo.gif is on the page somewhere

  • if somthing exists