2011-12-07 55 views

回答

4

你可以得到pagesource并检查注释是否有

_driver.Navigate().GoToUrl("http://mysite.com"); 
    var source = _driver.PageSource; 
    //check the source of the page to see if the commet is there. 
+0

是的,我在想,看起来像我必须做driver.switchTo()。frame(“theFrame”)来阅读每一帧。我认为对我来说最好的方法就是检查每一帧中的特定元素,以确保页面完全加载。干杯 – Sam

0

评论元素在DOM可用,如果你使用的浏览器,使它们可用。

相关问题