public void cookieNotExists ( double seconds , String unexpectedCookieName ) { double end = System . currentTimeMillis ( ) + ( seconds * 1000 ) ; while ( app . is ( ) . cookiePresent ( unexpectedCookieName ) && System . currentTimeMillis ( ) < end ) ; double timeTook = Math . min ( ( seconds * 1000 ) - ( end - System . currentTimeMillis ( ) ) , seconds * 1000 ) / 1000 ; checkCookieNotExists ( unexpectedCookieName , seconds , timeTook ) ; }
Waits up to the provided wait time for a cookie doesn t exist in the application with the provided cookieName . This information will be logged and recorded with a screenshot for traceability and added debugging support .