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:
java.lang.AssertionError: Time taken to process javascript page 17034
java.lang.AssertionError: Time taken to process javascript page 17021
java.lang.AssertionError: Time taken to process javascript page 17012
Run of NoAjaxTest:
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.
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 theajaxWait
time to 50 seconds, the page timeout will always be around 17 seconds.Several runs of AjaxResponseTest with ajaxWait = 50 seconds:
java.lang.AssertionError: Time taken to process javascript page 17034
java.lang.AssertionError: Time taken to process javascript page 17021
java.lang.AssertionError: Time taken to process javascript page 17012
Run of NoAjaxTest:
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.