CHAPTER 12

image

AJAX

AJAX (an acronym for Asynchronous JavaScript and XML) is widely used in web sites nowadays. Gmail uses AJAX a lot, for example. Let’s look at an example first, shown in Figure 12-1. On clicking the Transfer button, an animated loading image indicates that the transfer is in progress.

9781484217412_Fig12-01.jpg

Figure 12-1. An example of page using AJAX

After the server processes the request, the loading image is gone and a receipt number is displayed, as shown in Figure 12-2.

Figure 12-2. Display after the transfer is processed

From a testing perspective, ...

Get Selenium WebDriver Recipes in C#, Second Edition 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.