Sign in to follow this  
Followers 0
4ggr35510n

[Problem] FF.au3 _FFClick doesn't work properly

1 post in this topic

HTML code of the element i want simulate click on (viewed with firebug):

<input name="submit" type="submit" onload="this.disabled=false;" value="OK" style="font-size: 10pt;" />

I want to simulate click with this ff.au3 function:

_FFClick("submit","name")

And it doesnt work :/

Console returns:

__FFSend: try{FFau3.simulateEvent(FFau3.WCD.getElementsByName('submit')[0],'MouseEvents','click');}catch(e){'_FFCmd_Err';};
__FFRecv: -3
_FFClick ==> No match: $sElement: FFau3.WCD.getElementsByName('submit')[0]

So I try again, diffrent way:

_FFClick(_FFObjGet("submit","name"))

And still doesn't work, console returns:

__FFSend: try{window.content.top.document.getElementsByName('submit')[0]?1:0;}catch(e){'_FFCmd_Err';};
__FFRecv: 1
__FFSend: try{FFau3.simulateEvent(FFau3.WCD.getElementsByName('submit')[0],'MouseEvents','click');}catch(e){'_FFCmd_Err';};
__FFRecv: -3
_FFClick ==> No match: $sElement: FFau3.WCD.getElementsByName('submit')[0]

What the heck? _FFObjGet returns "1", so this element/object exists.

Why FFClick on this existing element/object returns error -3?

Please, help me.

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  
Followers 0