WD
|
Session class represents object that handles all information related to WD session. For each WD session new webdriver::Session object created and registered in webdriver::SessionManager. Valuable information stored in Session:
Most operations on views can be performed on separated thread(ie QT UI thread). For this purpose Session has RunSessionTask() method. And custom runnnig context can be added with webdriver::ViewRunner class:
Base capabilities are handled in webdriver::Session::Init() method. But there is way to extend this behavior with webdriver::SessionLifeCycleActions class. There are two methods - PostInit() and BeforeTerminate(). These methods automatically included in session's init/terminate sequence. Customizer can implement subclass of SessionLifeCycleActions and register it.
Beside capabilities handling there can be any other actions to be run on session's create or session's terminate.