Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

unable to submit embedded IE form

$
0
0
Internet Explorer Embedded window/dialog box
[ autoit ]      
$oPopup = _IEAttach("Sign In Confirmation -- Webpage Dialog", "embedded") $oForm = _IEGetObjById($oPopup, "signInConfirmationForm") $oID = _IEFormElementGetObjByName($oForm, "idNumber") _IEFormElementSetValue($oID, "123123") $oEXP = _IEFormElementGetObjByName($oForm, "idExpirationDate") _IEFormElementSetValue($oEXP, "06/12/2016") $oSelect = _IEFormElementGetObjByName($oForm, "idType") _IEFormElementOptionselect($oSelect, "State ID #", 1, "bytext"); needed so OK button appears/changes from grayed out Sleep(2000) ;ABOVE CODE WORKS PERFECTLY, but I cannot submit the form ;Using _IEFormSubmit opens a new window and i lose all inputed data as well as login status ;----------------------- ;Make it click the button!!!! ;_IEImgGetCollection ;use next time? ;.FireEvent method use? ;$oElement.fireEvent("onmouseover") $oPopup = _IEAttach("Sign In Confirmation -- Webpage Dialog", "embedded") _IEImgClick($oPopup, "blahblahblah/images/bt-ok.gif"); as well as "blahblahblah/images/bt-d-ok.gif" ;and tried: _IEImgClick($oPopup, "images/bt-ok.gif", "src"); and "images/bt-d-ok.gif"

code returns: _IEImgClick, $_IEStatus_NoMatch, I have the source code and exactly what the image is called, ID, name, src, etc, but still same error.
source code:
<input width="35" type="image" height="24" border="0" name="lastContinueEnable" src="blahblahblah/images/bt-ok.gif" alt="" onclick="submitValue();return false;" style="DISPLAY: none; VISIBILITY: hidden; CURSOR: hand" id="lastContinueEnable">
<input id="lastContinue" width="35" type="image" height="24" border="0" name="lastContinue" src="blahblahblah/images/bt-d-ok.gif" disabled="" style="VISIBILITY: visible">

I have also tried:
[ autoit ]      
$oInput = _IEGetObjByName($oPopup, "lastContinueEnable"); and "lastcontinue" tried _IEAction($oInput, "click")
returns same nomatch error
The OK image i need to click is greyed out until clicking outside form inputs and form has values.  I used _IEFormElementOptionselect($oSelect, "State ID #", 1, "bytext") and it makes the button appear clickable.
Running this code, I do NOT get the /........../ok.gif image returned.  I only get an image link for closing the window. So how is this image being hidden and how can i access it?
[ autoit ]      
#include <IE.au3> $oPopup = _IEAttach("Sign In Confirmation -- Webpage Dialog", "embedded") Local $oImgs = _IEImgGetCollection($oPopup) Local $iNumImg = @extended MsgBox(0, "Img Info", "There are " & $iNumImg & " images on the page") For $oImg In $oImgs MsgBox(0, "Img Info", "src=" & $oImg.src) Next

Please help me.  Let me know if anything else is needed.  I'm stuck and this is the last part I need to complete my script to automate part of my job.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>