Qousio Posted June 7, 2009 Share Posted June 7, 2009 Hello! I'm trying to make IE click a certain button for me, however I can't seem to understand why it won't work I have tried $Button = _IEGetObjByName($IE_Create_Variable_Here, "selectitem7");I have also tried IEFormGetObjByName _IEAction ( $Button, "click" ) and $Button = _IEGetObjByName($IE_Create_Variable_Here, "selectitem7");I have also tried IEFormGetObjByName _IEFormSubmit ($Button) I have also tried to insert "go" instead of "selectitem7". But it wont work. I'm quite sure this is the buttons source: <form name="selectitem7" id="selectitem7" method="POST" action="java script: self_refresh(3, document.getElementById('selectitem7').elements['select'].value);"><input type="submit" name="submit" value="go"> <input type="hidden" name="select" value="809"></form></td></tr> Link to comment Share on other sites More sharing options...
dantay9 Posted June 7, 2009 Share Posted June 7, 2009 You use something like this: $Form = _IEFormGetObjByName(...) $Button = _IEFormElementGetObjByName(...) then you should be able to click it. Link to comment Share on other sites More sharing options...
Qousio Posted June 7, 2009 Author Share Posted June 7, 2009 You use something like this:$Form = _IEFormGetObjByName(...)$Button = _IEFormElementGetObjByName(...)then you should be able to click it.Thanks, it works perfectly now ! 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