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: 387, Answers: 66)
Asked on July 29, 2014 11:39 pm
40 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: 17, Answers: 807)
Answered on July 29, 2014 11:41 pm
0
That's too simple. I should have thought of it!
( at July 29, 2014 11:42 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top