public static WebElement findElementClickableAfter(SearchContext parent,By by,int timeoutInSeconds){
  Preconditions.checkNotNull(parent);
  Preconditions.checkNotNull(by);
  try {
    WebElementWait wait=new WebElementWait(parent,timeoutInSeconds);
    return wait.until(null);
  }
 catch (  TimeoutException e) {
    throw new TimeoutException(String.format("Element %s is not clickable after %s seconds",by,timeoutInSeconds),e);
  }
}

public static WebElement findElementClickableAfter ( SearchContext parent , By by , int timeoutInSeconds ) { Preconditions . checkNotNull ( parent ) ; Preconditions . checkNotNull ( by ) ; try { WebElementWait wait = new WebElementWait ( parent , timeoutInSeconds ) ; return wait . until ( null ) ; } catch ( TimeoutException e ) { throw new TimeoutException ( String . format ( "Element %s is not clickable after %s seconds" , by , timeoutInSeconds ) , e ) ; } }
finds an element that is clickable .
