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


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. :-)

| improve this answer | |
  • Thanks. Do you know if Windows or Mac will allow you to run selenium scripts on a locked computer? – seleniumappiumnewbie Jan 9 '16 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. – Peter M. - stands for Monica Jan 11 '16 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. – seleniumappiumnewbie Jan 17 '16 at 19:24

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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