| || |
[base href=\"\"] How can I get this?
Anyone know how I can capture/parse the "base href" line from the HTML source?
I'm testing a site with multiple language support, and I want to test that the text on the site is correct for the language selected. "base href" is the only given indication of what language is selected. I can't get any info from the URL or any images, because the page is generated dynamically from XSL.
Re: [base href=\"\"] How can I get this?
You can do View Source from IE, then copy the contents into a list of string. Then write a loop to parse the list of strings, using MatchStr (sPattern, sStr) to find what you're looking for. You may need to use GetField (), Left (), and/or to actually find what you want. If you post the line of HTML and point out what you want to read, someone will write what you need to extract it for you.
Hope this helps.
John W Green