Delay in Browser Refresh after clicking Link

2 posts, 0 answers
  1. Jonathan
    Jonathan avatar
    23 posts
    Member since:
    Jan 2012

    Posted 28 Jun 2012 Link to this post

    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
  2. Ivaylo
    Admin
    Ivaylo avatar
    781 posts

    Posted 03 Jul 2012 Link to this post

    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
Back to Top