51Testing软件测试论坛
标题:
定位不住,请高手解答....
[打印本页]
作者:
dian106106
时间:
2012-5-1 14:07
标题:
定位不住,请高手解答....
[attach]78771[/attach]
用webdriver 对其功能测试.....定位不住.....屡试失败...
driver.findElement(By.xpath("//div[@class='coss']/ul/li[2]")).click();
请高手解决......
具体网址是:
http://xin.msn.com/?lang=en-sg
作者:
dian106106
时间:
2012-5-4 18:04
driver.findElement(By.xpath("//div[@class='coss']/ul[1]/li[1]/a")).click();
类似这个样子的。
哈哈。自己结贴
欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/)
Powered by Discuz! X3.2