title: Selenium webdriver test 100% pass locally, 100% fails on VSTS server
body: <p>currently in my 2nd week of trying to work out why a certain test runs perfectly locally but fails when being kicked off by a VSTS agent. </p>
  
  <p>Program flow:</p>
  
  <ul>
  <li>Select an row from a table</li>
  <li>Click Verify button</li>
  <li>CSS overlay darkens the screen, spinner in the middle</li>
  <li>Toaster pop up in the bottom left saying Verification starting</li>
  <li>About 1.5 minutes of time passes, spinner spins</li>
  <li>CSS overlay removed</li>
  <li>Toaster pop up bottom left, successful verification</li>
  </ul>
  
  <p>I have screenshots and debug output on everystep of the way and the failure is at the "Waiting for CSS overlay to be removed" stage. It times out waiting for it, now matter how long the timeout.</p>
  
  <p><a href="https://i.stack.imgur.com/Dvmed.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Dvmed.png" alt="Overlay and spinner in progress"></a></p>
  
  <p>Screenshot shows the CSS overlay and spinner still spinning even though the verification process completed successfully. Its almost as if it's stuck in time.</p>
  
  <p>Scenarios and results:</p>
  
  <ul>
  <li>Run from Local Visual Studio - PASS</li>
  <li>VSTS Agent - FAIL</li>
  <li>Manually run on VSTS Agent by remoting in and passing the exact commandline as the build - PASS (This is what infuriates me!!)</li>
  <li>Downgrading / upgrading Webdriver - no difference</li>
  <li>Headless / full mode - no difference</li>
  <li>Using different types of waits - no difference</li>
  <li>Waiting for Toaster pop ups instead of CSS - no difference</li>
  </ul>