Verify source code contains meta tag

  • Questions
  • Verify source code contains meta tag
Question ID: 105544
1
0

I have a LOT of website pages that I have to iterate through and verify that the following code is in the source code for the page:

I have tried a lot of things but none are working. Any suggestions?

Marked as spam
Posted by (Questions: 338, Answers: 20)
Asked on July 29, 2014 11:39 pm
4 views
Answers (1)
1
Private answer

Try the following:

IHTML =Browser(''CreationTime:= 0'').Page(''micclass:=Page'').Object.documentElement.outerHtm
If (InStr(IHTML,'' '') = 0) Then
Reporter.ReportEvent micFail, ''Row# - '' & i , '' The codes is not found on the page.''
End If

Marked as spam
Posted by (Questions: 16, Answers: 748)
Answered on July 29, 2014 11:41 pm
That's too simple. I should have thought of it!
( at July 29, 2014 11:42 pm)