ActiveBrowser.Refresh(); Resend Information Dialog appears

2 posts, 0 answers
  1. Scott
    Scott avatar
    68 posts
    Member since:
    Nov 2011

    Posted 12 Mar 2012 Link to this post

    My test recently started displaying the Windows Internet Explorer dialog with the message below and see attached... How can I handle this in a coded step if it appears... keep in mind sometimes it doesn't appear.... geez...

    Also, the webpage I am refreshing has nothing to do with purchases or buying anything... it's not a shopping site at all....

    Message is:

    To display the webpage again, the web browser needs to resend the information you've previously submitted.

    If you were making a purchase, you should click Cancel to avoid duplicate transaction. Otherwise, click Retry to display the webpage again.
  2. Ivaylo
    Ivaylo avatar
    782 posts

    Posted 13 Mar 2012 Link to this post

    Hello Scott,

    This dialog appears because it seems you are filling out form and then refresh the browser, this is normal behavior and our generic dialog handler can easily work with the dialog. The tough part here is the moment when the dialog doesn't appear. Unfortunately I am not sure if there is a workaround even with coded step. The best part will be to completely avoid the dialog (if ActiveBrowser.Refresh(); is removed) or to make sure this dialog will always appear. Can you see if you can detect some pattern for example in what circumstances the dialog doesn't appear?

    "the webpage I am refreshing has nothing to do with purchases or buying anything"

    The dialog may mention that, but it's shown during a specific condition that may or may not be a shopping cart. Can you provide us with the webpage you are trying to test or with the test project itself so we can try to find the best possible solution for you.

    Looking forward to hear from you.
    All the best,
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top