摘要: 使用moveToElement可是实现定位焦点,尝试后测试通过,代码如下 //鼠标单击前商品信息被隐藏,我们需要手动除展示商品标签的隐藏属性 JavascriptExecutor removeAttribute = (JavascriptExecutor)driver; removeAttribut 阅读全文
posted @ 2017-07-05 15:47 baoyu7yi 阅读(1910) 评论(0) 推荐(0) 编辑
摘要: 显示等待 WebDriverWait 超时抛出TimeOutException,默认500毫秒 ExpectedCondition 隐式等待 查找WebDriver无法使用的元素时等待,默认0,生命周期整个WebDriver 阅读全文
posted @ 2017-07-05 00:07 baoyu7yi 阅读(252) 评论(0) 推荐(0) 编辑
摘要: 没有 相似提示 出现控件 搜索结果是列表 搜索结果是网格 url为.com或.html 阅读全文
posted @ 2017-07-02 23:01 baoyu7yi 阅读(97) 评论(0) 推荐(0) 编辑
摘要: 流程: 分析自动化测试需求→制定自动化测试计划→设计自动化测试用例→搭建环境→编写脚本→分析结果→维护脚本 框架: 线性测试、模块化测试、数据驱动、关键字驱动 阅读全文
posted @ 2017-07-02 22:56 baoyu7yi 阅读(306) 评论(0) 推荐(0) 编辑
摘要: 1鼠标变粗:setting→1.打开设置 点击 plugins 输入ideavim 把 这个勾去掉!这个是插件的配置问题。 2.editor->appearance 去掉 use block 阅读全文
posted @ 2017-07-01 17:05 baoyu7yi 阅读(114) 评论(0) 推荐(0) 编辑
摘要: import java.sql.Timestamp; import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import org.apache.commons.lang3. 阅读全文
posted @ 2017-06-23 19:12 baoyu7yi 阅读(156) 评论(0) 推荐(0) 编辑
摘要: import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; /** * 日期工具类 默认使用 "yyyy-MM-dd HH: 阅读全文
posted @ 2017-06-23 19:11 baoyu7yi 阅读(150) 评论(0) 推荐(0) 编辑
摘要: 验证是否按照字母顺序排列, 不区分大小写 for(int j=0;j<s.length-1;j++){ String temp1=s[j].toLowerCase(); String temp2=s[j+1].toLowerCase(); System.out.println("temp1="+te 阅读全文
posted @ 2017-06-22 16:03 baoyu7yi 阅读(415) 评论(0) 推荐(0) 编辑
摘要: 1 <span style="font-family: verdana, Arial, Helvetica, sans-serif; font-size: 14px; line-height: 1.5;">如果使用assembly编译,则用到下面的assembly.xml:</span> 1 <sp 阅读全文
posted @ 2017-06-22 16:00 baoyu7yi 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 在pom.xml加入: <build> <finalName>oauth2</finalName> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.xml</inclu 阅读全文
posted @ 2017-06-22 15:58 baoyu7yi 阅读(229) 评论(0) 推荐(0) 编辑