question: public static void waitElementToNotBePresent ( SearchContext parent , By by , int waitInSeconds ) { Preconditions . checkNotNull ( parent ) ; Preconditions . checkNotNull ( by ) ; try { WebElementWait wait = new WebElementWait ( parent , waitInSeconds ) ; wait . until ( null ) ; } catch ( TimeoutException e ) { throw new TimeoutException ( String . format ( "Element %s is still present after %s seconds" , by , waitInSeconds ) , e ) ; } }
target:  Will wait until no element identified by the by is present.