随笔分类 - selenium
摘要:POI 操作 excel 用XSSF 方式时,如果不能自动导入 org.apache.poi.xssf 对应jar 包,则可以Apache 官网进行下载,自行导入。 step1: 访问 http://poi.apache.org/download.html step2: 搜索 poi-bin 进行定
阅读全文
摘要:来源:http://www.testclass.net/interview/selenium/ selenium中如何判断元素是否存在? selenium中没有提供原生的方法判断元素是否存在,一般我们可以通过定位元素+异常捕获的方式判断。 selenium中hidden或者是display = no
阅读全文
摘要:http://blog.sina.com.cn/s/blog_c189e2590102w3bv.html Selenium(Webdriver)自动化测试常问问题 (1)selenium中如何保证操作元素的成功率?也就是说如何保证我点击的元素一定是可以点击的?答:Selenium保证元素成功率是通过
阅读全文
摘要:来源:Selenium模拟JQuery滑动解锁 (selenium +Python ) 本文:selenium+Java
阅读全文
摘要:鼠标事件 Actions 类提供了鼠标操作的常用方法:· contextClick() 右击· clickAndHold() 鼠标点击并控制· doubleClick() 双击· dragAndDrop() 拖动· release() 释放鼠标 · perform() 执行所有Actions中存储的
阅读全文
摘要:来源: http://www.cnblogs.com/changshuo/p/3279520.html
阅读全文
摘要:http://edu.51cto.com/course/course_id-7320.html Selenium IDE WEB自动化测试入门视频课程(上)(共10课时)_在线自学视频教程_51CTO学院
阅读全文
摘要:step1: 访问 https://search.maven.org/ 搜索下载相关jar包 step2: 访问 http://maven.outofmemory.cn/info.cukes/cucumber-html/0.2.3/ 下载 cucumber-html-0.2.3.jar step3:
阅读全文
摘要:System.currentTimeMillis() new Date().getTime()
阅读全文
摘要:提供数据的一个测试方法。注解的方法必须返回一个Object[] [],其中每个对象 []的测试方法的参数列表中可以分配。该@Test 方法,希望从这个 DataProvider 的接收数据,需要使用一个 dataProvider 名称等于这个注解的名字。 返回Object[][] (1)直接给定测试
阅读全文
摘要:http://snkcxy.iteye.com/blog/1845862 ex: 比较网页截图图片与预期是否一致 File screenshot=((TakesScreenshot)driver ).getScreenshotAs(OutputType.FILE);FileUtils.copyFil
阅读全文
摘要:来源: 使用Webdriver执行JS小结 http://lijingshou.iteye.com/blog/2018929 selenium常用的js总结 http://www.cnblogs.com/tobecrazy/p/4817946.html 1.直接传入Javascript代码 可以直接
阅读全文
摘要:Apache Log4j配置说明/log4j的分层打印 http://blog.csdn.net/zzy7075/article/details/53763728
阅读全文
摘要:http://blog.csdn.net/pf20050904/article/details/20052485 http://www.cnblogs.com/hellokitty1/p/6295843.html?utm_source=itdadao&utm_medium=referral Thre
阅读全文
摘要:定位方式选择: 1. 当页面元素有id属性时,最好尽量用id来定位。但由于现实项目中很多程序员其实写的代码并不规范,会缺少很多标准属性,这时就只有选择其他定位方法。 2. xpath很强悍,但定位性能不是很好,所以还是尽量少用。如果确实少数元素不好定位,可以选择xpath或cssSelector。
阅读全文
摘要:来源: http://blog.csdn.net/anniejunyan/article/details/23257327 Selenium + Webdriver 学习(五) frame下元素定位 http://blog.csdn.net/huilan_same/article/details/5
阅读全文
摘要:来源:http://blog.csdn.net/cui_angel/article/details/7784211 http://www.cnblogs.com/tobecrazy/p/4570494.html selenium 总结篇,常见方法和页面元素的操作 基础普及 alert对话框 。细分三
阅读全文
摘要:来源:http://www.yiibai.com/selenium/selenium_multi_browser_testing.html http://blog.csdn.net/fgwvip123/article/details/51385874 测试类 XML文件 通过对XML文件进行右键点击
阅读全文
摘要:(1) 工程名右击 New--file -- newfile窗口中:filename中输入testng.xml testng.xml 文件中打开后,切换到source 标签中。进行编辑。 内容比如: 内容编辑好后,单击testng.xml 文件名。单击执行eclipse的 工具栏执行按钮(三角形)。
阅读全文

浙公网安备 33010602011771号