Selenium wait.until to check ajax request finished is throw error Selenium wait.until to check ajax request finished is throw error selenium selenium

Selenium wait.until to check ajax request finished is throw error


You need to pass a callable to wait.until():

wait.until(lambda driver: driver.execute_script("return jQuery.active == 0"))