Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def WaitTillAllDisplayed(arg: String){
- new WebDriverWait(driver, 100).until(new ExpectedCondition[Boolean] {
- @Override
- override def apply(d: WebDriver){
- var count =0
- val list = d.findElements(By.xpath(arg))
- for(i <- 0 to list.size()-1){
- if(list.get(i).isDisplayed)
- count +=1
- }
- count == list.size()
- }
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement