selenium
文章平均质量分 63
ab_2016
I don't really know where I'm going, but I hope I can go far.
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Selenium learning key points summary
最近在学习selenium基于java的自动化测试脚本的编写,遇到很多问题,打算开帖记录一下,年级大了,记性不好。1. 下拉菜单内容的获取:Select userSelect=new Select(driver.findElement(By.xpath(".//*[@id='fixed_left_id']/div/common-sensoradd/div[1]/div/div/di原创 2017-11-01 09:57:08 · 313 阅读 · 0 评论 -
Build Framework from Scratch
Build Framework from Scratch1. Creating Maven Test Project with Eclipse Integration (including configure framework dependencies in pox.xml)2. Creating Base and utility functions (@Test)3. Organizing P...原创 2018-01-11 13:51:04 · 469 阅读 · 0 评论 -
Maven+Selenium+TestNG搭建
结合虫师的电子版和Rahul的视频,总结了一套适合自己MyEclipse环境的Maven搭建流程。1. 准备工作: JDK : Java 开发程序所使用的环境。 MyEclipse: Java 开发程序所使用的 IDE。Maven :下载地址: http://maven.apache.org/download.cgi#For windows: 2. 环境配置:将 Maven 下载到本...原创 2018-01-02 15:47:15 · 1387 阅读 · 0 评论 -
TestNG Prioritizing & Sequencing
TestNG Prioritizing & Sequencing 转自http://toolsqa.com/selenium-webdriver/testng-prioritizing-sequencing/ (需翻墙查看)Multiple TestsThere will be situations when you want to put number of test转载 2018-01-15 17:42:47 · 275 阅读 · 0 评论 -
selenium:chromedriver与chrome版本的对应关系
转自:http://blog.youkuaiyun.com/huilan_same/article/details/51896672再使用selenium打开chrome浏览器的时候,需要用chromedriver,而chromedriver与chrome的版本也是要相互适宜的,对应关系如下:chromedriver版本支持的Chrome版本v2.24v52转载 2018-01-08 14:45:00 · 4804 阅读 · 0 评论 -
解决Missing artifact org.apache.commons:commons-csv:jar:1.5.1-SNAPSHOT
自己搭建Maven项目做selenium测试,想搞一下excel/csv data driven,结果报错找不到csvReader jar包,才想起来还没有向pox.xml加入dependency。于是百度搜索“csv maven dependency”,有两个都和csv dependency相关,选了http://commons.apache.org/proper/commons-csv/dep原创 2018-01-18 15:51:04 · 4233 阅读 · 1 评论 -
Excel/csv Data Driven+Selenium+Maven
跟着Rahul学到Framework,于是开始基于公司的项目搭建自己的Framework。Data Driven部分对@Data Provider已经可以熟练运用,今天自己试了一下excel,后面再抽时间去搞Mysql Database。在网上搜了一些Excel Data Driven的demo,不是太简单就是太难,Rahul的太简单都没有适合自己的,重新去看了下虫师的 6.3.3 读取csv 文原创 2018-01-18 17:51:29 · 454 阅读 · 0 评论 -
How to identify automation scenarios
转自 http://www.softwaretestinghelp.com/manual-to-automation-testing-process-challenges/Why Automated Testing?Automation does not overpower or replaces manual testing but it compliments it.转载 2018-01-29 16:36:33 · 555 阅读 · 0 评论 -
extentreprots+Maven+TestNG
Creating Excellent HTML reports for Test Results1> Create extentreports dependency in pom.xmlhttp://extentreports.com/ -> DOCUMENTATION -> Version3 -> Java -> Maven(left side Menu) -> add dependen原创 2018-01-11 11:05:31 · 1232 阅读 · 0 评论 -
ERROR StatusLogger No log4j2 configuration file found.
-- Maven+Selenium+Java+MyElipse -- ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Set system property 'log4j2.debug' to show原创 2018-01-11 10:51:41 · 673 阅读 · 0 评论 -
selenium java传感器修改
用selenium编写自动化脚本部署完传感器,还需要修改其中传感器类型package gcpi;import org.openqa.selenium.By;import org.openqa.selenium.JavascriptExecutor;import org.openqa.selenium.WebDriver;import org.openqa.s原创 2017-11-01 10:05:35 · 356 阅读 · 0 评论 -
selenium(java)处理HTML5的视频播放
学习虫师的自动化测试selenium 的4.17节 《处理 HTML5 的视频播放》。但是无法运行该章节的demo,所以自己搞了一套。从HTML5写代码开始。首先要保证原创 2017-11-01 11:52:15 · 1367 阅读 · 0 评论 -
selenium(java)窗口截图的应用--异常后截图
自动化用例是由程序去执行,因此有时候打印的错误信息并不十分明确。如果在脚本执行出错的时候能对当前窗口截图保存,那么通过图片就可以非常直观地看出出错的原因。WebDriver 提供了截图函数getScreenshotAs()来截取当前窗口。根据虫师的demo,我结合实际做了优化,效果不错。抛异常后截图,并且截图以时间戳命名区分。package ScreenShot;原创 2017-11-01 17:56:52 · 2761 阅读 · 0 评论 -
selenium(java)通过Cookie跳过登录验证码
学习selenium的Cookie这一节,用了很多时间没有成功捕获登录信息实现自动登录,最后还是搜到了虫师的文章,详细讲了如何通过fiddler抓包工具获取baidu的cookie的重要参数信息。参考文章:通过Cookie跳过登录验证码准备工具:------------------fiddlerPython+selenium---------转载 2017-11-02 17:14:51 · 11775 阅读 · 0 评论 -
Selenium Q&A
Forward from https://geteasyqa.com/qa/best-selenium-interview-questions/100 Best Selenium Job Interview Questions & AnswersThis article will be useful for all who are planning to get a tes转载 2017-12-21 16:07:23 · 1240 阅读 · 0 评论 -
Java Q&A For Selenium WebDriver
Forward from http://www.software-testing-tutorials-automation.com/2016/06/java-interview-questions-for-selenium.html (VPN needed to access)1 : What is object in java?Answer : O转载 2017-12-21 16:20:44 · 462 阅读 · 0 评论 -
Maven生成可以直接运行的jar包的多种方式
转自https://blog.youkuaiyun.com/xiao__gui/article/details/47341385Maven可以使用mvn package指令对项目进行打包,如果使用java -jar xxx.jar执行运行jar文件,会出现"no main manifest attribute, in xxx.jar"(没有设置Main-Class)、ClassNotFoundExceptio...转载 2018-03-23 15:36:38 · 433 阅读 · 0 评论
分享