I need to look in my site's pages for a snippet of code that does some analytic work, unfortunately it's not represented on the screen... is there a way I can get Test Complete to look at the source code or for me to ask if this snippet is in the page?
x = Browser("Google").Object.Document.all.item(1).oute rHTML
Function RegExpTest(patrn, strng)
Dim regEx, Match, Matches
Set regEx = New RegExp ' Create a regular expression.
regEx.Pattern = patrn ' Set pattern.
regEx.IgnoreCase = False ' Set case sensitivity. //
Set Matches = regEx.Execute(strng) ' Execute search.
For Each Match in Matches ' Iterate Matches collection.
RetStr = RetStr & Match.Value
RegExpTest = RetStr
msgbox RegExpTest("Google", x)
You should be fine. (it may not work with 9.5)
Please let me know.