-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot attach to existing session #104
Comments
As I can't clearly decide whether this is a bug or my lack of knowledge, I've asked the same question on SO: http://stackoverflow.com/questions/37963785/cannot-attach-to-existing-selenium-session-with-a-geckodriver . |
@alexmorozov This is probably a real issue. I haven’t used Selenium to attach to existing sessions before, so I don’t yet know in what layer there is a problem. |
@andreastt , I suspect geckodriver is a culprit here. Simply because on earlier FF versions with legacy driver I had been able connect to an existing session in a way I described above. If you kindly point me to a legacy driver's codebase, I'd try to look into it and come up with some specific suggestions. |
@alexmorozov FirefoxDriver can be found in https://github.com/SeleniumHQ/selenium/tree/master/javascript/firefox-driver/js. |
Okay, I think I have overestimated my skills. Feeling completely lost in a bizarre mix of JS, Python and Java. But I was able to reconnect to my browser by cutting the new session creation out of the webdriver:
So now I can connect to the browser and now it complains that |
I think what you’re running into here is reconnecting to a previous session. The /session/{session id}/moveto endpoint does not exist in WebDriver-conformant remote ends, however. We will need to do a shim for this in the Selenium Python client bindings. Would you mind filing an issue with Selenium on that? |
Sure thing. Actually there is already an issue there: SeleniumHQ/selenium#2285 . And they seem to be waiting to clear some things with you. :) |
Closing this one as the behaviour seems to should be fixed in Selenium itself. See the SO post for how to work around it for the time being. |
This issue has been automatically locked since there has not been any recent activity after it was closed. If you have run into an issue you think is related, please open a new issue. |
Hi guys and sorry if this issue doesn't belong here.
After upgrading to geckodriver I'm unable to reuse my Selenium's sessions. Here's my setup:
I have a
start_browser.py
script, which launches a Fireofx instance and prints a port to connect to, like:... and another script, which tries to connect to the existing instance via Remote driver:
But it seems to be trying to launch a new session, and failing with a message:
Is there an ability to just attach to the existing session, like in previous versions of Selenium? Or is this an intended behaviour of geckodriver?
The text was updated successfully, but these errors were encountered: