boy233 Posted January 15, 2016 Share Posted January 15, 2016 Hello, How do I select the submit?Anybody know?!<form method="post" action="register.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="form1"> .... .... <input type="submit" name="btnConfirm" value="Confirm" id="btnConfirm" disabled="disabled" class="aspNetDisabled Button" /> .... .... <input type="submit" name="btnQuery" value="Query" id="btnQuery" disabled="disabled" class="aspNetDisabled Button" /> </form> Link to comment Share on other sites More sharing options...
boy233 Posted January 15, 2016 Author Share Posted January 15, 2016 I found the solution! : DGlobal $oIE = _IECreate("https://somewebsitehere", 1) Local $username = _IEGetObjByName ($oIE, "username") Local $password = _IEGetObjByName ($oIE, "password") Local $button = _IEGetObjByName ($oIE, "login") _IEFormElementSetValue ($username,"whatever username") _IEFormElementSetValue ($password,"whatever password") _IEAction ($button, "click") 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