| || |
Can TP detect meta tags?
We have multiple web pages in an application with same title/page name. I'm wondering whether TP can detect meta tags?
Have anyone used TP to detect meta tags? If so please let me know.
Thank you for your time.
Re: Can TP detect meta tags?
I don't know if meta tags show up as objects in the DOM or if they're just extra text in the HTML, but I needed to get values from font tags and TP couldn't support them so it was necessary to access the tag values programatically.
With a reference to 'Microsoft HTML Object Library' try the following:
Dim oHTMLDoc As HTMLDocument
Dim vElement As Variant
Set oHTMLDoc = HTMLBrowser("Caption='QA Forums: Can TP detect meta tags_'").Object
Set vElement = oHTMLDoc.getElementsByTagName("Meta")
Set vElement = Nothing
Set oHTMLDoc = Nothing
You can cycle through the collection to find meta information your looking for, or perhaps try a different element type.