摘要: selenium-webdriver中获取页面元素的方式有很多,使用注解获取页面元素是其中一种途径, 方式有3种:@FindBy、@FindBys、@FindAll。下文对3中类型的区别和使用场景进行介绍 1)@FindBy 2)@FindBys @FindBys 相当于是取交集,是先根据第一个注解 阅读全文
posted @ 2017-08-04 18:37 Eimme 阅读(435) 评论(0) 推荐(0) 编辑
摘要: 1.Gherkin简介: Cucumber是一个解释程序,就像ruby命令执行解释 .rb文件里的Ruby代码一样,Cucumber用来执行解释 .feature文件里的Gehrkin代码。Gherkin是一种简单的英语文本语言,它有助于工具--Cucumber解释和执行测试脚本。 如前所述,已经看 阅读全文
posted @ 2017-08-04 17:51 Eimme 阅读(4083) 评论(0) 推荐(0) 编辑
摘要: @RunWith(Cucumber.class) Cucumber will default to looking for feature files under the same package as RunCucksTest. You can also change the location(s 阅读全文
posted @ 2017-08-04 13:45 Eimme 阅读(6312) 评论(0) 推荐(0) 编辑