-
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
Since Geckodriver 0.31, it's no longer possible to pass capability --remote-debugging-port #2011
Comments
There is no mentioning of this change in the release notes because basically no-one should actually pass this Firefox argument through capabilities. Instead the Note that CDP support for Firefox is already in Selenium since version 4.0, and that still works as expected by using this capability. |
@whimboo, thanks for the quick reply. I understand that it is an intended behavior, however as I was mentioning in my initial post, what is documented does not seem to work: when I pass the Note that I'm not using any Selenium server, I'm calling directly the geckodriver Webdriver server. You can reproduce it very easily with the following: Legacy capabilities:
Response
New capabilities:
Response
Am I doing this wrong? Or do I need to pass an additional capability? |
For capability matching you should use |
Hum, quite embarrassing... I don't understand how I missed it! Thanks a lot for your support and sorry for wasting your time on this! |
No worries at all. Good to see that it's working as expected for you now. Note that soon WebDriver BiDi will also be a thing in case you are interested in. Feel free to drop into our Matrix channel at https://chat.mozilla.org/#/room/#webdriver:mozilla.org |
Yes, I'm well aware, can't wait to have a standardized way of using those DevTools. A websocket will definitely be a major improvement upon the current REST-based implementation. And I'm really glad that all major browsers appear around that virtual spec table as well...! I'm afraid I don't have the time nor the expertise to participate in geckodriver's implementation but I'll definitely keep track of the announcements. Good luck! |
Hey @whimboo
Let me know if I'm making some mistake in the caps. |
The geckodriver binary supports the |
Thanks for the quick response! I'm not spawning geckodriver binary directly and rather using selenium with |
I would suggest that you consult the documentation of the corresponding Selenium binding or ask their community support. It's outside of my knowledge which APIs different Selenium bindings actually offer. Sorry |
Cool, no worries |
@whimboo it seems difficult to type this capability given it is a |
@christian-bromann which capability are you referring to? The |
I am talking about |
Yes, and this will be hopefully soon. For which features do you still need CDP via Selenium? AFAIK logging (which was the only used CDP feature with Firefox) is now completely done via WebDriver BiDi. |
I was just fixing a bug in WebdriverIO where someone reported that WDIO wouldn't recognise that capability. I let them know that it will be deprecated. Thanks for the info! |
mozilla/geckodriver#2011. We can update again after updating past webdriverio 6.
mozilla/geckodriver#2011. We can update again after updating past webdriverio 6.
mozilla/geckodriver#2011. We can update again after updating past webdriverio 6.
mozilla/geckodriver#2011. We can update again after updating past webdriverio 6.
System
Testcase
--remote-debugging-port
(code sample using VS Code REST Client extension):Additional remarks
alwaysMatch
)--remote-debugging-port
is still recognized by Firefox executable, at least until v99moz:debuggerAddress
as documented here does not provide additional information in the returned capabilities to retrieve the debug portStacktrace
Expected
Session creation with the specified remote debugging port opened which allows to call
/json/version
in order to retrieve thewebSocketDebuggerUrl
.This used to work until Geckodriver 0.30.0.
If this behavior is intended, there is no mention of the change in the 0.31.0 release notes . In which case, an acceptable bypass would be to provide another way of setting the debug port or retrieving its value if it is automatically set.
The text was updated successfully, but these errors were encountered: