title: When macbook is locked, selenium safari tests initiated by Jenkins on the mac wont run
body: <p>I have made sure that the mac does not sleep by adjusting the settings in the system preferences. Jenkins will start the test on a schedule, the browser comes up but the test fails because the page is blank.</p>
  
  <p>The same test works with no problem if the mac is unlocked or the screen save is not up.</p>
  
  <p>I cannot leave the mac unlocked because the test runs at night and its a security issue.</p>
  
  <p>Has anyone encountered this issue? And have a solution. Please share.</p>
  
  <p>Attaching some logs. This image will give an idea of what I am describing.</p>
  
  <p><img src="https://i.stack.imgur.com/IKdzg.png" alt="Screenshot of logs"></p>