
selenium
智能滚球子
嘻嘻
展开
-
selenium chrome driver 和IE driver 常见问题(2)
package com.selenium.test; import org.openqa.selenium.ie.InternetExplorerDriver;import org.openqa.selenium.remote.DesiredCapabilities;import org.openqa.selenium.By;import org.openqa.selenium.WebDr原创 2014-11-19 10:52:24 · 7929 阅读 · 0 评论 -
selenium 打不开chromedriver的问题
could not start a new session 问题原创 2014-11-18 15:48:06 · 5924 阅读 · 0 评论 -
selenium的中文文字类型转换错误
你看看这里,类型没有转换这个错误是说你的这些文字没有用GBK这个类型转换,所以你要么转换类型,要么删除这段话.如果使用中有设计到中文特殊字符一定要做处理。原创 2014-11-17 16:18:31 · 1796 阅读 · 0 评论 -
使用selenium的时候firefox容易出现的问题
unable to connect to host 127.0.0.1 on port 7055zh这个原因出现,是因为selenium没有使用最新的版本儿,导致firefox和selenium不兼容。原创 2014-11-17 16:12:56 · 1980 阅读 · 0 评论 -
遇到多动作不执行的情况,一个click操作部执行,还不报错。。
这个问题,如果是点击不了的话,你可以试一下,先确认一下那个元素存在不存在,然后在进行点击的操作,有的时候是因为没有定位上去呢,程序就结束了或者跳过了。然后点击完成后也要在加上验证程序看一下点击过后的页面的某个元素是不是显示出来了,然后在结束,这样子双保险.还有做自动化测试的时候必须做的事情,就是先认证一个元素是否存在,在做操作,操作后在验证相应页面是否显示,就相当于把手动测试的步骤自动化。原创 2014-11-17 16:21:41 · 854 阅读 · 0 评论 -
Selenium在使用中的一些常用方法
Selenium WebDriver的简单操作说明:http://blog.youkuaiyun.com/bwgang/article/details/7902526总结Selenium WebDriver中一些鼠标和键盘事件的使用:http://www.wxphp.com/wxd-1ec7e6bead51f01dc381f10c-1.htmlselenium webdriver学习总结-浏览原创 2014-11-17 16:23:39 · 626 阅读 · 0 评论 -
selenium和junit 的使用
Selenium 与 JUnit 兑现自动化测试:http://www.educity.cn/wenda/139129.htmlSelenium WebDriver 与 JUnit 入门实践:http://www.educity.cn/wenda/139129.htmlSelenium终极自动化测试环境搭建(一):Selenium+Eclipse+Junit+TestNG - 15原创 2014-11-18 14:21:12 · 3040 阅读 · 0 评论 -
selenium使用IE 浏览器问题
Started InternetExplorerDriver server (64-bit)2.25.2.0Listening on port 40961Exception in thread "main" org.openqa.selenium.WebDriverException: Unexpected error launching Internet Explorer. Protecte原创 2014-11-19 14:05:54 · 8996 阅读 · 5 评论 -
selenium页面滚动图片元素定位
问题:页面中如果出现滚动图片该如何问题解决建议的答案:css=img[src="http://img12.360buyimg.com/da/jfs/t589/13/396507220/60981/da180357/54655eddNcd53aeba.jpg"]应该是这样的一个顺序做自动化测试的时候顺序一定不可以错哦不然会报错的像元素找不到啊什么的原创 2014-11-17 16:20:05 · 3193 阅读 · 0 评论 -
使用WebDriver遇到的一些问题汇总
使用WebDriver遇到的那些坑:http://www.ltesting.net/ceshi/open/kygncsgj/selenium/2014/0716/207380.htmlwebdriver报不可见元素异常方法总结:http://www.51testing.com/html/91/79191-829759.html原创 2014-11-17 16:22:29 · 959 阅读 · 0 评论 -
selenium webdriver无法解析为类型的问题
如果查看不了的话,可以到http://my.oschina.net/u/855532/blog/345782 这里查看原创 2014-11-18 10:24:25 · 1258 阅读 · 0 评论 -
selenium chrome driver和 IE driver 常见问题(1)
The path to the driver executable must be set by the webdriver.ie.driver system property的问题1.The path to the driver executable must be set by the webdriver.ie.driver system property; for more info原创 2014-11-19 10:50:19 · 25492 阅读 · 0 评论 -
selenium 元素获取问题(1)
高端自动化测试交流群:310924886selenium获取百度页面上的“百度百科”产生的问题:原创 2014-11-19 12:25:12 · 818 阅读 · 0 评论 -
在使用sendkeys()时出现的问题
这段代码 driver.findElement(By.id("kw")).sendKeys("123");出现的这个问题:Exception in thread "main" java.lang.Error: Unresolved compilation problem: The method sendKeys(CharSequence[]) in the type WebEl原创 2014-11-17 16:16:21 · 7988 阅读 · 1 评论 -
selenium元素定位
selenium中如何定位链接为图片的元素:http://zhidao.baidu.com/linkurl=ExdlMLrj1xsrd49atSSIuLZjGJgqDUbTUoeu01SW99JG7WquMAgGiUN4euKlKvS9mkvEbT7ZsXaXmWoKIHBHBaSelenium webdriver 学习总结-元素定位:http://www.blogjava.net/q原创 2014-11-17 16:24:24 · 1335 阅读 · 0 评论 -
selenium 启动firefox浏览器问题
unable to connect to host 127.0.0.1 on port 7055问题有以下两种问题:1.selenium版本儿和firefox版本儿不兼容,二者必须要用最高版本儿。2.在项目的jar包中 selenium-server-standlone-2.41.0.jar(或者更高版本儿)和selenium-java-2.44.0(或更高版本儿)使用冲突。seleniu原创 2014-11-18 11:20:49 · 7896 阅读 · 0 评论 -
selenium webdriver 使用指南
选择浏览器开始测试—Selenium自动化测试指南(2):http://www.blogjava.net/qileilove/archive/2013/08/30/403472.htmlSelenium 设定firefox的启动路径 :http://blog.youkuaiyun.com/appleheshuang/article/details/7899335原创 2014-11-18 11:03:28 · 638 阅读 · 0 评论