code: public static ExpectedCondition<WebElement> visibilityOfOneOfElementsLocatedBy(final By locator) {
  		return new ExpectedCondition<WebElement>() {
  			@Override
  			public WebElement apply(WebDriver driver) {
  				for (WebElement element : driver.findElements(locator)) {
  					if (element.isDisplayed()) {
  						return element;
  					}
  				}
  				return null;
  			}
  
  			@Override
  			public String toString() {
  				return "visibility of one of the elements located by " + locator;
  			}
  		};
  	}
docs: An expectation for checking that at least one of the elements matching the locator
  is visible.
  
  @param locator used to find the elements
  @return the first visible WebElement that is found