In continuation to my earlier blog today i am covering the Ajax Element Handling settings.
Ajax Element Handling
The application under test may have used "AJAX" technology to build the application. In "AJAX", the element can inserted into the web page dynamically without loading the web page at all. If you automate such an application, playback will be successful if the element is inserted in to the web page without any delay. If there is some network delay or the application response is poor, then there is a possibility that the playback will fail, unable to find the particular element in the web page. In such scenario, you can enable AJAX element handling setting in QEngine. This will pause the playback until the element inserted into the web page. You can also configure timeout, which will pause the playback until timeout. If the element is inserted before the timeout configured the play will continue with further script actions immediately.
To Configure "AJAX Element Handling" Goto "Settings -> Replay Settings" and enable the option "Enable AJAX element handling" and configure the "Maximum time to wait".
You can enable AJAX element handling from the script using the Built-in function "enableWaitForElement("
AJAX Element Handling will help in resolving some unexpected failures in playback due to dynamic nature of the application. This will reduce time in debugging some unexpected failures.
Thanks
Raghavan
Post Comment