WD
|
#include <webdriver_session_manager.h>
Public Member Functions | |
void | Add (Session *session) |
bool | Remove (const std::string &id) |
bool | Has (const std::string &id) const |
Session * | GetSession (const std::string &id) const |
std::map< std::string, Session * > | GetSessions () |
Static Public Member Functions | |
static SessionManager * | GetInstance () |
Friends | |
struct | DefaultSingletonTraits< SessionManager > |
Session manager keeps track of all of the session that are currently running on the machine under test. With webdriver the user is allowed multiple instances of the browser on the same machine. So 2 sessions open would mean you would have 2 instances of chrome running under their own profiles.
void webdriver::SessionManager::Add | ( | Session * | session | ) |
Add previously created session to SessionManager
session | pointer to Session object |
|
static |
Returns the singleton instance.
Session* webdriver::SessionManager::GetSession | ( | const std::string & | id | ) | const |
std::map<std::string, Session*> webdriver::SessionManager::GetSessions | ( | ) |
Get list of sessions
bool webdriver::SessionManager::Has | ( | const std::string & | id | ) | const |
Check if session exists
id | sessionId to check |
bool webdriver::SessionManager::Remove | ( | const std::string & | id | ) |
Remove session object referenced by sessionId
id | sessionId to remove |
|
friend |