Hello All,
I am using Test studio to test my website.
One of the major problems that I encountered is that the tool doesn't wait for the entire page to load.
The scenario I am recording is as:
My site contains a number of assignments which a user(instructor) can edit.
I have to click on edit link for a particular assignment after which the assignment page loads in which I have to edit an instruction(click a button) and changes instruction text(change value in a textbox).
The problem is that after I click "edit assignment button", It takes some time(10-25 seconds) to load the page.If I do not specify any delay in the script , the tool tries to click the edit instruction button before the page loads completely. also, It's strange that the tool somehow shows that the button is clicked(though it is actually not) and proceeds to next step(entering text in textbox) where it fails as I doesn't get any textbox(the textbox comes after clicking edit instruction button which was not actually clicked).
I have checked "SimulateRealClick" also.
I am not able to find out the reason for such behavior (the tool showing click action performed though it's not actually clicked).
IF I specify a sufficient delay before click step, It works correctly. But this delay concept doesn't work well everytime as the time the page takes to load may vary and to cater all cases, I cannot specify a long delay as It would cause unnecessary waiting. I am facing this similar problem at a number of other places also in the site.
Could anybody plz suggest if there is a generic solution for this problem(not something like specifying delay or slowingdown the script) ? I want the tool to wait(or keep searching for the element)till the page is loaded completely.
Thanks and regards,
Shruti