While Clicking a particular button - my test site will open modal window.
But the modal window opens are differ, either it opened with modal window 1 or modal window 2
Both are having different title, different options and different locators.
Now I should have to wait until the modal window open Either 1 or 2
.
Is it possible to wait until either one modal window (WebElement) is visible?
I have searched in WebDriverWait methods, but all methods are to wait until a particular WebElement to visible or clickable.
I can't find a better method to wait until either one is visible.
Could you suggests any one method to solve this situation?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…