PaLmeTToX Posted May 8, 2015 Posted May 8, 2015 <td align="right"> <script language="JavaScript"> DrawActionTableTop(); DrawActionRow('sign in','#"onClick="JavaScript:doit()',2 ); DrawActionTableBottom(); </script>I am trying to do a simple login to a webpage. When i view the source of the web page it shows ^^^^ Further in the source the function that it is calling is function doit() { if(validate()) document.loginFormBean.submit(); } My following Autoit code of course is not working to submit the page$oButton=_IEGetObjById($oIE,"sign in") _IEAction ($oButton, "click")How would I click on this button or can i run this command somehow? Sorry for all the code boxes, i could not delete them once added.document.loginFormBean.submit();
Danp2 Posted May 8, 2015 Posted May 8, 2015 What's the URL for the website? Latest Webdriver UDF Release Webdriver Wiki FAQs
Danp2 Posted May 8, 2015 Posted May 8, 2015 Did you try:$oForm = _IEFormGetObjByName($oIE, 'loginFormBean') _IEFormSubmit($oForm)If that doesn't work, then this should:_IELinkClickByText ($oIE, "sign in") PaLmeTToX 1 Latest Webdriver UDF Release Webdriver Wiki FAQs
PaLmeTToX Posted May 8, 2015 Author Posted May 8, 2015 HA, you are awesome. $oForm = _IEFormGetObjByName($oIE, 'loginFormBean') _IEFormSubmit($oForm)That did it. How did that work? I have been beating my head trying to figure this out'logonFormBean' is the name of the Form?
Danp2 Posted May 8, 2015 Posted May 8, 2015 'logonFormBean' is the name of the Form?Correct. Latest Webdriver UDF Release Webdriver Wiki FAQs
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