title: Selenium: wait for server response just long enough?
body: <p>We have <em>large</em> suites of selenium scripts and some of the tests are "unstable": On the CI-builds they fail but on the dev-machines they are ok.</p>
  
  <p>We assume that the reason is in performance: the CI-builds are slower than the dev-machines and our application blocks any interaction with the web-app directly after an action until the server response comes back.</p>
  
  <p>This brings me to the question:</p>
  
  <p><strong>How can the client know how long the server might take?</strong></p>
  
  <p>We can wait after each click for a long time -> but this will slow down the test-suite heavily.</p>
  
  <p>Is there a trick to wait <strong>just long enough</strong> ?</p>
  
  <p>Since our suites are so large, I do not want to maintain/treat this in each and every test-case but generically in test-framework or on server side.</p>
  
  <p>I dont have much technical experience with selenium, but this sounds more like a conceptual problem.</p>