Jump to content

_IEaction unable to find sumbit on page for web login


Recommended Posts

<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();
Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...