HarshaKuchampudi Posted January 20, 2014 Share Posted January 20, 2014 (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 January 20, 2014 by HarshaKuchampudi Link to comment Share on other sites More sharing options...
TechCoder Posted January 20, 2014 Share Posted January 20, 2014 Send("^{F5}") Link to comment Share on other sites More sharing options...
HarshaKuchampudi Posted January 20, 2014 Author Share Posted January 20, 2014 Send("^{F5}") Nope, still getting the same form resubmission error. Link to comment Share on other sites More sharing options...
jdelaney Posted January 20, 2014 Share Posted January 20, 2014 How about an _ieNavigate to reload the page? IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. Link to comment Share on other sites More sharing options...
HarshaKuchampudi Posted January 20, 2014 Author Share Posted January 20, 2014 (edited) How about an _ieNavigate to reload the page? I can't because the URL is static. Everything is controlled through javascript actions. Edited January 20, 2014 by HarshaKuchampudi Link to comment Share on other sites More sharing options...
TechCoder Posted January 20, 2014 Share Posted January 20, 2014 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? Link to comment Share on other sites More sharing options...
HarshaKuchampudi Posted January 20, 2014 Author Share Posted January 20, 2014 (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 January 20, 2014 by HarshaKuchampudi Link to comment Share on other sites More sharing options...
TechCoder Posted January 20, 2014 Share Posted January 20, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now