摘要: PageObject模式: 样例: Selenium官网: https://www.w3.org/TR/webdriver/#dependencies https://seleniumhq.github.io/docs/ Selenium_doc https://seleniumhq.github. 阅读全文
posted @ 2019-03-13 22:15 嗯哼~ 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 我们首先使用如下语句进行选择: $("ul:eq(1)").css("background-color", "yellow"); 这条语句的作用是选择文档中 第二个ul 元素部分的内容(时刻记住位置过滤器是jQuery特有的所以其起始位索引为0),你会发现li中内容为jQuery部分的背景色变成了黄 阅读全文
posted @ 2019-02-18 20:40 嗯哼~ 阅读(317) 评论(0) 推荐(0) 编辑
摘要: 使用@FindBy定位元素,必须在使用PageFactory初始化该页面。 通过查看PageFactory类,我们可以知道它是一个初始化一个页面实例的功能,在实例化该页面对象时候,也会一起实例化该页面的元素定位 阅读全文
posted @ 2019-02-16 16:58 嗯哼~ 阅读(175) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-02-16 15:34 嗯哼~ 阅读(1) 评论(0) 推荐(0) 编辑
摘要: Selenium帮助文档:https://seleniumhq.github.io/selenium/docs/api/java/org/openqa/selenium/support/ui/ExpectedConditions.html selenium+java完整框架 :http://www. 阅读全文
posted @ 2019-02-14 22:17 嗯哼~ 阅读(218) 评论(0) 推荐(0) 编辑