Oct 15 2008 11:03:14 PM Posted By : Raghavan
Comments (0)

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("",)". State - "true" for enable "false" for disable. Timeout - Maximum time to wait.

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

No one has commented yet! Be the first one to comment!

Post Comment

38.107.179.226 (38.107.179.226)