MachinePublishers / jBrowserDriver

A programmable, embeddable web browser driver compatible with the Selenium WebDriver spec -- headless, WebKit-based, pure Java
Other
809 stars 143 forks source link

JBrowserDriver ajaxWait parameter times out incorrectly #320

Open nddipiazza opened 6 years ago

nddipiazza commented 6 years ago

Look at https://github.com/MachinePublishers/jBrowserDriver/pull/321

I've created a couple tests for ajax times here.

I noticed while running com.machinepublishers.AjaxResponseTest#testAjaxSpeed if you set the ajaxWait time to 50 seconds, the page timeout will always be around 17 seconds.

Several runs of AjaxResponseTest with ajaxWait = 50 seconds:

  1. java.lang.AssertionError: Time taken to process javascript page 17034
  2. java.lang.AssertionError: Time taken to process javascript page 17021
  3. java.lang.AssertionError: Time taken to process javascript page 17012

Run of NoAjaxTest:

  1. java.lang.AssertionError: Time taken to process javascript page 16997

The time taken should have been a little more than 50 seconds. Not 17 seconds.