rodkay Posted November 21, 2009 Share Posted November 21, 2009 (edited) Hi all,I have been trying unsuccessfully to write code that will click on a webpage SEND button using a variety of the _IE functions. The segment of code containing the button is listed below; as you can see it uses javascript calls. At present I am using AutoIt to press the button by positioning the mouse via a number of steps, but I was hoping to streamline this method. This is the only instance the SEND button appears on the page.Can someone help me out.<div class="fp_line"> <a href="javascript:;" onclick="checkOfflineFP()" class="btn_80" style="float:right;">SEND</a> <a href="javascript:;" onclick="fpOfflineCancel()" class="btn_80" style="float:right;">CANCEL</a></div>The browser is IE8The tab title is The Web Page » My homepageThanks,Rod Edited November 21, 2009 by rodkay Link to comment Share on other sites More sharing options...
Valuater Posted November 21, 2009 Share Posted November 21, 2009 the button has an onclick action, so it must be clicked. Try _IEAction($oText, "click") If it still doesn't work, IE.au3 will give you a better error message. #1 $oFrame = _IEFrameGetObjByName($oIE, "body_Frame") $oButton = _IEGetObjById($oFrame, "Button_Name") _IEAction($oButton, "click") #2 _IEFormSubmit($oForm) #3 ControlSend($oIE, "", "", $oButton) ...See help for more info on these 8) 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