How Closely Does A Selenium WebDriver Test Time Match a User's Experience?



  • I am looking into automating some performance testing and am struggling to find the answer to the above question. If I create a test using Selenium and the IE WebDriver, which loads a page and waits for some event to happen (and element being populated via AJAX for instance), will the time recorded closely match what a user would record if they sat there with a stopwatch (allowing for user reaction time, etc)



  • When you wait for some event to happen such as an element being populated via AJAX, you aren't literally waiting; you are polling. By adjusting your polling frequency, you can control the interval between when an event occurs and when Selenium detects it. That said, Selenium might be the wrong tool for the job, but the question isn't detailed enough for me to tell.


Log in to reply
 

Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2