????λ?????????? >> ??????????
??дSelenium Web Driver Sample Code
???????????? ???????[ 2014/5/15 11:05:51 ] ????????Selenium ????????????
??????Selenium WebDriver??????????????????????????????????Python????????????Java????????????????Eclipse+Selenium 2.32???????????
????Sample????????????£??????????
(new WebDriverWait(driver?? 10)).until(new ExpectedCondition<Boolean>() {
public Boolean apply(WebDriver d) {
return d.getTitle().toLowerCase().startsWith("cheese!");
}
});
|
???????????д????
WebDriverWait WDW = new WebDriverWait(driver?? 10);
WDW.until(new theWait());
//(new WebDriverWait(driver?? 10)).until(new ExpectedCondition<Boolean>() {
// public Boolean apply(WebDriver d) {
// return d.getTitle().toLowerCase().startsWith("cheese!");
// }
//});
public static class theWait implements ExpectedCondition<Boolean>{
public Boolean apply(WebDriver d) {
Boolean bool = d.getTitle().toLowerCase().startsWith("cheese!");
if(bool == true)
{
String title = d.getTitle();
System.out.println("Page title is: " + title);
}
return bool;
}
}
|
???????????????????????Java????override??С????
???????????????????????漰???????????????????SPASVOС??(021-61079698-8054)?????????????????????????
??????
????????????????AutoRunner??Selenium????????Selenium???????????????????????Selenium?????????????Щ?????????????????£???????Selenium???????????????ζ?Selenium???????????????????Selenium???????????????????????з?????Щ??????????????????????ATF???Selenium??????????????????д???????Selenium?????????????Selenium????????????????????Selenium???????????ATF????θ??????????????????????Selenium??????????????ATFJava?汾??Selenium??????????UI???-Python+Selenium???????Selenium????Webdriver??????????????????η???Selenium?????????Selenium FF WebDriver?????????firebug??2????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11????????
?????????App Bug???????????????????????Jmeter?????????QC??????APP????????????????app?????е????????jenkins+testng+ant+webdriver??????????????JMeter????HTTP???????Selenium 2.0 WebDriver ??????