Navigate HTML Source while performing WatiN tests
I am performing actions on the page during WatiN tests. What is the neatest method for asserting certain elements are where they should be by evaluating the HTML source? I am scraping the source but looking for a cle开发者_如何转开发an way to navigate the tags pulled back.
UPDATE: Right now I am thinking about grabbing certain elements within HTML source using regular expressions and then analysing that to see if other elements exist within. Other thoughts appreciated.
IE.ContainsText("myText") is not enough for your scenario?
I would use XPath to navigate tags in HTML without using regexps.
精彩评论