随笔分类 -  Selenium

摘要:juqery选择器是jquery库中非常重要的功能。jquery选择器是基于CSS1-3选择器,加上一些额外的选择器。这些选择器和CSS选择器的使用方法很相似,允许开发人员简单快速的识别页面上的元素。同样可以定位HTML中的元素作为一个单独的元素或者是一个元素的集合。jquery选择器可以使用在那些... 阅读全文
posted @ 2014-12-21 19:04 tomweng 阅读(2214) 评论(0) 推荐(0)
摘要:WebDriver处理一些弹窗import java.util.Set;import org.openqa.selenium.Alert;import org.openqa.selenium.By;import org.openqa.selenium.NoAlertPresentException;... 阅读全文
posted @ 2014-12-21 14:33 tomweng 阅读(264) 评论(0) 推荐(0)
摘要:ReportFlow:// click the Grid icon and switch to grid pagepublic void changeToGrid()// click the Add/Locate icon in the grid page/or in the controller,... 阅读全文
posted @ 2014-08-08 11:30 tomweng 阅读(199) 评论(0) 推荐(0)
摘要:public static WebDriverWait createWait(WebDriver driver) { return new WebDriverWait(driver, Environment.getTimeOutInSeconds(),Environment.getSleepI... 阅读全文
posted @ 2014-07-15 10:07 tomweng 阅读(288) 评论(0) 推荐(0)
摘要:1. 每个脚本分为三部分: test ( 即是test case), flow (即操作页面的工作流), page ( 页面元素)。 test 里的 step (验证点) 都是一个方法,但该方法不在 test具体实现, 具体实现是在 flow 里完成的;而 flow 是实现操作的具体工作流,但flo... 阅读全文
posted @ 2014-07-08 14:44 tomweng 阅读(506) 评论(0) 推荐(0)