public final ExpectBuilder withTimeout ( long duration , TimeUnit unit ) { validateDuration ( duration ) ; this . timeout = unit . toMillis ( duration ) ; return this ; }
Sets the default timeout in the given unit for expect operations . Optional the default value is 30 seconds .