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")) ) );
时间: 2024-10-08 23:34:15