Can you run selenium on a locked computer? I noticed some of my tests fail intermittently on a locked computer. I also tried to increase wait time between clicks and find elements to see if it helps. Does anyone have any thoughts on this? Thanks

1 Answer 1


Yes. On linux, you can run commadline utility screen. It allows you to have 10 separate terminal sessions. You can detach them and attach later, even from home or another computer.

You can even name those sessions so you can see into which window you want to switch. Very handy, I have 2 screen sessions running all the time. :-)

  • Thanks. Do you know if Windows or Mac will allow you to run selenium scripts on a locked computer? Jan 9, 2016 at 2:32
  • Mac in Unix so screen utility should be available. Windows is NOT unix so I do not think such convenient commandline utilities are available. Jan 11, 2016 at 15:07
  • Thanks. I solved the issue by downloading a program that makes the mouse keep moving so the computer won't lock. Then the tests passed. Jan 17, 2016 at 19:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.