public interface TimeoutListener
Modifier and Type | Method and Description |
---|---|
void |
beforeRelease(TestSession session)
Gives a chance to clean the resources on the remote when the session has timed out.
|
void beforeRelease(TestSession session)
Is executed before the session is released to the hub. If an exception is thrown, the slot that was associated with the session is considered corrupted and won't be released for future use.
You can check session.getInternalKey before timing out. internalkey==null usually means the initial POST /session hasn't been completed yet.For instance if you use web driver, that means the browser is in the process of being started. During that state, you can't really clean the resources properly.
session
- session