问题: 单击第一个网页中的链接,打开第二个网页,继续测试?
selenium.Click("xpath=//a[@href='http://www.caihao.com/ps/rsm/Intent.aspx']");
selenium.WaitForPageToLoad("3000");//打开新的页面必须有等待时间
有的页面刷新两次,可以不需要waitForPageToLoad。
问题:如何取得html元素的值? selenium.GetAttribute("Resume1_hlSkim@href");//取得链接的href值
问题:如何使用xpath定位链接
selenium.Click("xpath=//a[@href='http://www.caihao.com/ps/rsm/Intent.aspx']");
问题:验证文字是否存在网页中?
selenium.IsTextPresent(nickName)