Jump to content

Auto IE Form Resubmit?


Recommended Posts

Whenever I attempt to resend the form information on a webpage, I get the notification:

"To display the webpage again, Internet Explorer needs to resend the information you've recently submitted.

If you were making a purchase, you should click Cancel to avoid a duplicate transaction. Otherwise, click Retry to display the webpage again."

 

Is there any way that I can "force refresh" to avoid this message? Otherwise, what can I do to automate the refresh in this instance?

I am using the command: 

_IEAction($oIE, "refresh")

Thank you,

Harsha

Edited by HarshaKuchampudi
Link to comment
Share on other sites

I am just using an embedded browser to submit some information:

$UserSearchBox = _IEGetObjById($oIE, "search_mts")

$oTags = _IETagNameGetCollection($UserSearchBox, "input")
For $oTag In $oTags
If String($oTag.Value) == "Search" Then
_IEAction($oTag, "click")
_IELoadWait($oIE)
EndIf
Next


_IELoadWait($oIE)

$REGResults = _IEGetObjById($oIE, "reg_srch_results")
_IEAction($REGResults, "scrollintoview")

After this code I executed 

_IEAction($oIE, "refresh")

And then just like any other browser I am met with the confirm form resubmission dialog box.

If I manually click ok to let the page refresh, it refreshes properly. I just want this automated without my need of confirming the dialog box.

Edited by HarshaKuchampudi
Link to comment
Share on other sites

though nowhere in your code are you trying to detect the text that is your issue..........

 

"To display the webpage again, Internet Explorer needs to resend the information you've recently submitted.

If you were making a purchase, you should click Cancel to avoid a duplicate transaction. Otherwise, click Retry to display the webpage again."

check out 

WinGetText

as well as 

_IEBodyReadText

 

check the text against the 'issue' and THEN use the Send("^{f5}")  (that is the refresh command you are using manually, right?)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...