-
Notifications
You must be signed in to change notification settings - Fork 143
Description
It appears that there's a disconnect between Hound's internal list of sessions and the webdriver's list of sessions. When I call Hound.Session.active_sessions() I get a list of sessions running on the webdriver. But when I try to change to one of them change_session_to(session["id"]) it creates a new session.
Looking a bit more closely at Hound.SessionServer.change_current_session_for_pid, I see that between iex sessions, the list of sessions it identifies becomes emptied (since it apparently uses ETS and doesn't restore a list upon resume or anything). Additionally, it's a bit confusing to see that the session id returned by calls like start_session is actually not the name of the session and seemingly also can't be used for change_session_to.
My immediate goal is to reconnect to an active session. Is there something I'm not seeing here?