Quality Testing

Quality is delighting customers

How to handle AJAX element to get clicked in selenium webdriver?

How to handle AJAX element to get clicked in selenium webdriver?

Views: 255

Reply to This

Replies to This Discussion

AJAX stands for Asynchronous JavaScript and XML, AJAX helps web applications to load small chunks of data from the webserver without having to refresh the complete page.

When it comes to automating these types of elements, there are some challenges associated with it like whether the Ajax call has been completed & the page has been updated. Sometimes the required information may load within a second & somethings it can take much longer.

Most of the software testing company uses the explicit wait depends on the actual scenario requirements. However, we can build a custom library to handle the synchronization.

Here below if the Java file for the same containing the same: Synchronization_WAIT.java

Test Script using the above library:TestScript_Wait.java

Please do let me know if there's any doubt.



I would like to get suggestions from the team of experts, Just Drop your Query here: Hire QA

The Team of Testrig Technologies will surely help you in the right way 


TTWT Magazine





© 2020   Created by Quality Testing.   Powered by

Badges  |  Report an Issue  |  Terms of Service