on-internet
← Community

Selenium execution stops when screen is locked

Stack Overflow ·

I can execute my Selenium scripts without any issues if the screen is not locked. As per our organization policy, our system will be locked automatically after 3 minutes of inactivity (but system will never sleep or hibernate). The problem is that the test execution stops because of NoSuchElementException sometimes after the screen is locked. This exception occurs randomly on different elements after the screen is locked. So I cannot run my tests unattended I guess. Selenium test should run without any problem regardless the screen is locked. I run the tests on Google Chrome on Windows machine

Comments

Sign in or sign up to comment and upvote.

No comments yet.