开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜