Skip to content

Cannot Reconnect to Active Webdriver Session #113

Description

@afjackman

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions