语句没错,跑起来结果就是failed...健壮性健壮性
上一篇 / 下一篇 2012-04-24 22:18:38 / 个人分类:Selenium
TAG:
- 引用 删除 dian106106 / 2012-05-09 10:08:59
-
WebDriverWait wait = new WebDriverWait(driver,10);
wait.until(new ExpectedCondition <WebElement>(){
@Override
public WebElement apply(WebDriver dr) {
return dr.findElement(By.linkText("Make xinmsn my homepage"));
}}).click();
- 引用 删除 dian106106 / 2012-04-27 13:48:46
-
package ENSG;
import com.thoughtworks.selenium.*;
import java.util.regex.Pattern;
//import static org.junit.Assert.*;
public class lianxi2 extends SeleneseTestCase {
public void setUp() throws Exception {
setUp("http://www.glassesshop.com", "*chrome");
}
public void testTest123() throws Exception {
selenium.open("/");
if(selenium.isTextPresent("Sign In")){
System.out.println(".........");
String getselotionl = selenium.getLocation();
System.out.println(getselotionl);
}
}
}
标题搜索
日历
|
|||||||||
日 | 一 | 二 | 三 | 四 | 五 | 六 | |||
1 | 2 | 3 | 4 | ||||||
5 | 6 | 7 | 8 | 9 | 10 | 11 | |||
12 | 13 | 14 | 15 | 16 | 17 | 18 | |||
19 | 20 | 21 | 22 | 23 | 24 | 25 | |||
26 | 27 | 28 | 29 | 30 | 31 |
我的存档
数据统计
- 访问量: 74582
- 日志数: 80
- 建立时间: 2012-04-12
- 更新时间: 2013-05-21