Skip to content
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

GeckoDriver (firefox) logging causes exceptions #72

Closed
ghost opened this issue Jul 16, 2020 · 0 comments · Fixed by #73
Closed

GeckoDriver (firefox) logging causes exceptions #72

ghost opened this issue Jul 16, 2020 · 0 comments · Fixed by #73
Labels
bug Something isn't working

Comments

@ghost
Copy link

ghost commented Jul 16, 2020

Bug

When running a test in Firefox (geckodriver), if there is anything printed to the console during the test, an UnsupportedCommandException exception will be thrown causing the test to fail. Geckodriver maintainers have stated they are not going to implement logging features until W3C finalizes a standard for it mozilla/geckodriver#284

Expected

If browser logging is unavailable then log a statement regarding the console output being discarded and continue the test.

Repro

  1. set the browser to firefox
  2. open a site which will generate a log to console
  3. See error

org.openqa.selenium.UnsupportedCommandException: POST /session/XXXXXXXX-XXXX-XXXX-XXXX-XXXXc43ed72f/log did not match a known command
Using Selenium Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' on Saucelabs

@ghost ghost added the bug Something isn't working label Jul 16, 2020
kgress pushed a commit that referenced this issue Jul 16, 2020
fix: firefox throws UnsupportedCommandException when using any logging feature
fixes #72
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

0 participants