Wait Until AJAX Call Completes

Learn how to wait until AJAX call completes using Selenium for testing an AJAX query.

If the target application uses JQuery for AJAX requests, which is mostly the case, then we can use a JavaScript call to check active AJAX requests. The jQuery.active is a variable that JQuery uses internally to track the number of simultaneous AJAX requests. We can do so by following the steps below:

Get hands-on with 1300+ tech skills courses.