© Courtney Zhan, Edited by Zhimin Zhan 2024
Z. Zhan (ed.)Selenium WebDriver Recipes in C#https://doi.org/10.1007/979-8-8688-0023-8_12

12. Testing AJAX

Courtney Zhan1  
(1)
Fitzgibbon, QLD, Australia
 
AJAX (Asynchronous JavaScript and XML) is widely used in websites nowadays (Gmail uses AJAX a lot). Let’s look at an example first; see Figure 12-1.

A screenshot denotes the title Pay by credit card, along with a set of details which include the fare, card type, card holder's name, card number, and expiry date, and a pay now button.

Figure 12-1

Example payment page with a payment in progress

On clicking the Pay now button, an animated loading spinner shows up ...

Get Selenium WebDriver Recipes in C#: Practical Testing Solutions for Selenium WebDriver now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.