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 fails to start FireFox-57.0.2 when Windows Screen is Locked #1100

Closed
ChrisSwan opened this issue Dec 13, 2017 · 7 comments
Closed

Comments

@ChrisSwan
Copy link

System

  • Windows 10
  • Selenium 3.8.0
  • Firefox 57.0.2 (64 bit)
  • geckodriver 0.19.1 win64

Testcase

I have boiled this down to a C# app that simply starts up the FirefoxDriver, and I add it to a scheduled task. If my Windows machine is locked or (my main use case) I've switched to another user, then the Driver crashes on startup.
Through adding debug logs I can see that an exception is thrown, but error.message is empty.

This appears to be a reopening of Issue #972

@cgoldberg
Copy link

If my Windows machine is locked or (my main use case)
I've switched to another user,
then the Driver crashes on startup.

What is the expected behavior when running with screen locked? AFAIK, this disables mouse and keyboard events and you won't get very far with your automation.

@ChrisSwan
Copy link
Author

I already a number of Selenium tests using the ChromeDriver while not logged in, and they all work fine. Currently though I can't automate any Firefox Selenium tests due to this issue. I'm assuming if it works in Chrome it should be fine in Firefox too?

@kestasjas
Copy link

Historically Chrome & FF automation via Selenium was transparent to Screen status.
IE always required Unlocked screen.

@andreastt
Copy link
Contributor

I believe Gecko has a closer-to-reality input emulation which could explain why events are not sent when the screen is locked, for the same reasons @cgoldberg gave.

I would suggest running with the screen unlocked for the moment. If you do care deeply about this issue I would suggest filing an issue against Firefox.

@ChrisSwan
Copy link
Author

Ok, since this is being closed as expected behaviour I'll remove Firefox from my automated tests. Thank you for letting me know.

@whimboo
Copy link
Collaborator

whimboo commented Jan 4, 2018

@ChrisSwan I fail to understand your reported issue. What exactly is not working? Does Firefox not start, or does geckodriver fail in some way? Please attach trace level logs for further details: https://firefox-source-docs.mozilla.org/testing/geckodriver/geckodriver/TraceLogs.html

@lock
Copy link

lock bot commented Aug 17, 2019

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.

@lock lock bot locked and limited conversation to collaborators Aug 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants