AJAX and Dynamic HTML Behaviour
AJAX is a technique for creating fast and dynamic web pages. Using AJAX, you can update parts of a web page without reloading the whole page. Classic web pages, (which do not use AJAX) must reload the entire page if the content should change.
When you are using Selenium to automate AJAX web applications or dynamic HTML web applications, you need to wait until web page is updated with new web elements resulting from AJAX operations. Once web page is updated, now it’s like normal webpage and you can find required web elements with Selenium and work with them. This page tries to simulate AJAX behaviour by dynamically creating a button or displaying an alert box after specified wait.
Enter the number of seconds to wait:
Click the button to create a new button dynamically:
Click the button to display alert box: