-
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
Old geckodriver releases raise an exception (code 64) if started with unsupported --websocket-port argument #1959
Comments
When I changed the version of INAPPROPRIATEgeckodriver to the latest 0.29.1 obtained from the following, the Status code became 1. What action do I need to take?
|
Please update to geckodriver 0.30.0, and try again. Further please provide trace logs of geckodriver. It may also help to upgrade Firefox to at least the latest 91 ESR release. |
Before I knew it, 0.30.0 had been added! I got 0.30.0 and confirmed that I don't get Exceptions. The FireFox version is still the same. Sadly, I got another CRITICAL error.
|
Again, without a trace log there is nothing that we can actually help with in regards of the currently provided details. So please attach one. Thanks. |
I'm sorry. How can I get the trace log? I am running the following command, but it does not output any results after the first line.
|
Sure, that will be all that's written to |
You will only get the following message
|
Is that with a client connecting to geckodriver? I doubt so. The client needs to send at least the new session command. You could use curl to do that. See the examples here: https://firefox-source-docs.mozilla.org/testing/geckodriver/Usage.html#standalone |
@its-ogawa You are running a I'm a bit frustrated by this, too, and I don't know what's the right answer. Nowhere in the Selenium documentation did I see anything stating "geckodriver 0.30.0 or higher is required." I feel like the Here's how you can confirm: from selenium import webdriver
from selenium.webdriver.firefox.options import Options
opts = Options()
opts.log.level = 'trace'
# source: https://firefox-source-docs.mozilla.org/testing/geckodriver/TraceLogs.html#python
# via: https://github.com/mozilla/geckodriver/issues/1959
browser = webdriver.Firefox(options=opts)
browser.get('https://github.com')
assert 'GitHub' in browser.title Look at the contents of
…then the version of As a workaround, try downloading a binary of 0.30.0 for your platform and make sure it shows up first in your shell's search path (putting it |
Binary download is a very good idea. |
Hi, and getting the error as well. attached trace log: In addition: |
@yacov-ma Please follow the instructions above to have The status code returned to Selenium (64) may be the same, but the underlying problem could be different. Inspecting |
@ernstki Thank you for the quick reply. This was actually the issue. |
Thanks everyone for the feedback. As it has been manifested the problem here is not geckodriver but Selenium. As such you should create an issue on the Selenium repository instead, so that an option could be added to not always pass the |
@yacov-ma Unless there is some obstacle in your environment preventing you from doing so, I would recommend just downloading a newer This is beyond the scope of this issue, but if you are doing Selenium testing as one specific user, then Just on principle, I'd like to see Selenium "fixed" to support geckodriver <0.30, but it's not something I'm going to invest time in when there's a quick workaround that works fine for my testing environment. |
Note that the support for older geckodriver releases highly depend on the Selenium binding that you are using. In case for Python it works still fine for geckodriver releases before 0.30.0. So which bindings are you using? |
I'm trying to connect to an existing Firefox instance using selenium in python.
Then on python I run the following commands
but get an error on the last line
What am I doing wrong? Is there a solution? Thanks |
@Rabelaiss your question is not related to this issue at all, and which is also closed. Also this question seems to be more related to Selenium than geckodriver. I would suggest to ask over there. |
Useful when working with selenium, which relies on the "--websocket-port" argument understood from v0.30.0 onwards. See mozilla/geckodriver#1959
specify the path of the geckodriver may fix this error in the follow way: |
As per our support table for geckodriver the 0.29.1 version can only be used up to Firefox 90. And this is most likely not what you want given that support for this Firefox version ended ages ago. |
@whimboo |
System
Testcase
geckodriver throws an exception (code 64).
What is the cause?
Also, is there a page with the code for the exception?
Any advice would be appreciated in advance.
The text was updated successfully, but these errors were encountered: