I am currently trying to automate our application that uses
Ajax with QTP
Here is my problem
Usually when we give some input, the page is suppose to get loaded, in AJAX, the datatable or the area of the page where the data is expected gets refreshed and not the entire page.
Also when using Descriptive programming there are layers for this Ajax and it detects that the application is still loading while visibly it has finished loading
Can you please give me an idea to over come this problem.
Ajax and loading with QTP.I have QTP 9.2 with web as the addin. Just standard add ins.
Turbografx pointed out that you can just let your next access to one of the AJAX objects wait for Object Sync Timeout, thereby sync'ing to the loading of the AJAX objects. This assumes that they load within Object Sync Timeout seconds (the default is 20 seconds), which you can extend if needed (but there is most likely a problem if the AJAX objects don't load within 20 seconds from a user's perspective).
I had to change my assumptions about what Browser.sync returning True means, once I started to work with AJAX (back channel) technology.