Sign in to follow this  
Followers 0
HarshaKuchampudi

Auto IE Form Resubmit?

8 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
Share on other sites



Send("^{F5}")

Share this post


Link to post
Share on other sites

Send("^{F5}")

 

Nope, still getting the same form resubmission error.

Share this post


Link to post
Share on other sites

#5 ·  Posted (edited)

How about an _ieNavigate to reload the page?

 

I can't because the URL is static. Everything is controlled through javascript actions.

Edited by HarshaKuchampudi

Share this post


Link to post
Share on other sites

how are you detecting the message - and then subsequently sending the refresh?  you didn't include any code of that, so it may be that is where you are not catching things properly?

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

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

Share this post


Link to post
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?)

Share this post


Link to post
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
Sign in to follow this  
Followers 0