Jump to content
Sign in to follow this  
t0bias

ff.au3 tells me form is undefined

Recommended Posts

t0bias

hey,

im playing around with ff.au3 and set up a simple test script that just fills in 2 form input fields and submits it and it keeps telling me:

!!! TypeError: content.frames.top.document.formLogin is undefined

problem here is that the two input fields get filled but the submit fails with that error BUT when i manually test if the form exists by just copying the "undefined" DOM path into the url bar like

java script:content.frames.top.document.formLogin.submit();

and it enter - it submits the form - means there is no error... im kinda confused here... anyone? :mellow:

Share this post


Link to post
Share on other sites
dbzfanatic

Share this post


Link to post
Share on other sites
t0bias

The fact that it is javascript complicates things. IE has similar errors when a javascript event is called to submit.

no. its not javascript. its plain html.

i just triggered the submit over javascript manually to check if the error dom path is wrong and its okay but ff.au3 tells me its undefined.

Share this post


Link to post
Share on other sites
t0bias

<form id="formLogin" name="formLogin" action="/login.html" method="post">
<input id="username" name="username" tabindex="1" type="text" value="" maxlength="50" />
<input id="password" name="password" tabindex="2" type="password" value="" maxlength="30" />
<div id="signinBtnDiv"><a href="#" tabindex="3" id="signinBtn"><span>Sign In</span></a></div>
</form>

thats the html i try to fill and submit and i cant get it working with the _FFFormSubmit() function - any other suggestions?

can i for example execute javascript? because like i said - with javascript i could just trigger the formLogin.submit();

thanks!

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.