标签:
1. And 用法
wait.until(ExpectedConditions.and(
ExpectedConditions.visibilityOfAllElementsLocatedBy(By.name("Services")),
ExpectedConditions.visibilityOfAllElementsLocatedBy(By.name("Products")) ) );
2. Or 用法
wait.until( ExpectedConditions.or( ExpectedConditions.visibilityOfAllElementsLocatedBy(By.name("Services")), ExpectedConditions.visibilityOfAllElementsLocatedBy(By.name("Products")) ExpectedConditions.visibilityOfAllElementsLocatedBy(By.name("Contact Us")) ) );
标签:
原文地址:http://www.cnblogs.com/heaven1025/p/5771457.html