Wait Until AJAX Call Completes

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

We'll cover the following

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 1200+ tech skills courses.