This is a migrated thread and some comments may be shown as answers.

Delay in Browser Refresh after clicking Link

1 Answer 29 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jonathan
Top achievements
Rank 1
Jonathan asked on 28 Jun 2012, 05:24 PM
I'm trying to eliminate fixed Execution Delays in a test and there has to be a better way.  

The problem.  We are entering clients into a page and the save only occurs when you navigate off the page or click on the link that brings you to the page that you are already on.  In automation, after entering the client data, I am clicking on the link that brings you to the same page.  However, when I click on this link, there is a delay before the page loads.  So, without an execution delay, the script often fails because it is going to the next step which is wait for an element to exist.  The problem is that it existed before the page had time to refresh.  I have entered a ActiveBrowser.WaitUntilReady and that didn't help.  This isn't an ajax thing either.   I also tried waiting until an element doesn't exist and waiting until it existed again which didn't seem to work either. Any suggestions?

Thanks,

Jonathan

1 Answer, 1 is accepted

Sort by
0
Ivaylo
Telerik team
answered on 03 Jul 2012, 09:48 AM
Hello Jonathan,

Please excuse me for the delayed reply.

Instead of fixed delays, we typically recommend Waits and setting Ample Timeouts in your test so the steps stay in sync with the app. As far as I can see you've already tried waits and it didn't help. Please review the article about Ample Timeouts and give it a try. I also would like to test this directly, is there any way you can provide access to the website you are testing. Please note that you are currently writing in forum post and you should submit a ticket if you are going to post sensitive information since in the ticket all the info remains private.

Please also note that in some cases the only option for a running test is the use of fixed delays.

Looking forward to hear from you.

All the best,
Ivaylo
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Tags
General Discussions
Asked by
Jonathan
Top achievements
Rank 1
Answers by
Ivaylo
Telerik team
Share this question
or