上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 77 下一页
摘要: http://chromedriver.storage.googleapis.com/index.html?path=2.1/下载地址把googledriver.exe 放到google浏览器下目录下,然后再创建webDirver对象时 从构造函数传入.exe路径。即可。_driver = new OpenQA.Selenium.Chrome.ChromeDriver(@"C:\Program Files (x86)\Chrome")C:\Program Files (x86)\Chrome 阅读全文
posted @ 2013-11-06 09:40 小毛驴 阅读(330) 评论(0) 推荐(0) 编辑
摘要: selenium Element not found in the cache - perhaps the page has changed since it was looked up。这个问题爆出以后,找了各种解决的方法,始终不能正常解决。最后找到了一个方法,上边提示说可以尝试在页面刷新后重新 find元素。就把查找基本元素的方法挪了下位置,在页面刷新后,在次查找需要处理的集合,找到后在进行处理。问题解决,最后发现,这个问题彻底解决了,哎。写代码要谨慎啊。页面存在多种连接时,可能一行既有图片又有文字连接,找到后分开放了2个集合。一个点击完后,在点击后一个集合,就会出现上边的错误,这个也很合 阅读全文
posted @ 2013-11-01 14:00 小毛驴 阅读(1517) 评论(0) 推荐(0) 编辑
摘要: https://thenewcircle.com/bookshelf/selenium_tutorial/locators.html 阅读全文
posted @ 2013-11-01 11:22 小毛驴 阅读(128) 评论(0) 推荐(0) 编辑
摘要: 1.页面元素处于不显示状态时,找不元素。必须使元素处于显示状态。使用js 或者 元素的点击事件等方式可以实现。2.动态id定位不到元素for example: //WebElement xiexin_element = driver.findElement(By.id("_mail_component_82_82")); WebElement xiexin_element = driver.findElement(By.xpath("//span[contains(.,'写 信')]")); xiexin_element.click(); 阅读全文
posted @ 2013-11-01 09:43 小毛驴 阅读(2246) 评论(0) 推荐(0) 编辑
摘要: http://sauceio.com/index.php/2009/10/selenium-tip-of-the-week-start-improving-your-locators/http://blog.sina.com.cn/s/blog_539a70d301012my3.htmlhttp://www.tizag.com/cssT/selector.php 阅读全文
posted @ 2013-10-31 16:22 小毛驴 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Vs 自带自动化测试录制工具。selenium则是开源的大众工具。在使用发现vs 自带的工具录制方便,但是修改很难。但是可以提供后续的BUG管理和邮件通知,自动构建等功能。selenium在.net平台下怎么没有这些功能。现在准备把selenium的测试代嵌入到vs codeUI testmethod中,使其结合起来。这样可以方便的使用selenium的代码编辑和Vs的自动化支持功能。 阅读全文
posted @ 2013-10-30 09:11 小毛驴 阅读(214) 评论(0) 推荐(0) 编辑
摘要: http://www.dotblogs.com.tw/komiyama/archive/2011/06/20/29274.aspxhttp://www.360doc.com/content/10/0710/09/1324621_37998428.shtml 阅读全文
posted @ 2013-10-29 15:51 小毛驴 阅读(167) 评论(0) 推荐(0) 编辑
摘要: 代码和selenium driver相同 只是 启动环境方式不同。至少启动一个hub 一个 node 。如需要多个,可以使用端口进行区分。java-jarselenium-server-standalone-x.xx.x.jar-rolenode-port5555java-jarselenium-server-standalone-x.xx.x.jar-rolenode-port5556java-jarselenium-server-standalone-x.xx.x.jar-rolenode-port5557代码如下WebDriverwd=newRemoteDriver("http 阅读全文
posted @ 2013-10-29 15:18 小毛驴 阅读(386) 评论(0) 推荐(0) 编辑
摘要: selenium 可以进行移动测试的。Anroid ,IOS .进行移动端测试,需要相应的SDK ,apk。其中anriod 是selenium 支持有2中选择,remote server 和 test frework.remote server方式可以使用多种语言进行测试。test fremwork目前只有java。 阅读全文
posted @ 2013-10-28 11:22 小毛驴 阅读(953) 评论(0) 推荐(0) 编辑
摘要: cd C:\Users\kfa_wangchao\Downloadsjava -jar selenium-server-standalone-2.37.0.jarcmd=getNewBrowserSession&1=*iexplore&2=http://www.google.comjava -jar selenium-server-standalone-2.37.0.jar -interactivecmd=getNewBrowserSession&1=*iexplore&2=http://www.google.com 阅读全文
posted @ 2013-10-25 15:57 小毛驴 阅读(180) 评论(0) 推荐(0) 编辑
上一页 1 ··· 59 60 61 62 63 64 65 66 67 ··· 77 下一页