Jump to content

Cannot click on image on FF.au3


Recommended Posts

Hi, everyone.

I cannot press "Submit" image on Login website using FF.au3

#include <FF.au3>
#include <FFex.au3>

_FFStart()
_FFOpenURL("https://url")
_FFTabSetSelected()

_FFSetValueByName("username")
_FFSetValueByName("msisdn")
_FFSetValueByName("password")
Sleep(1000)
_FFImageClick("visual/images/login-btn.png")

 

I have been using IE.au3 with _IEFormImageClick($oIE, "visual/images/login-btn.png", "src") and it's successful.

I want to use Firefox now because I got some error on IE like crash, etc.

Can you all help me?

 

Thanky ou.

Link to comment
Share on other sites

something like this can do the trick thru addressbar in any browser

Could be more complex for an image if its not having a uniquename  or id that the javascript needs to be a little longer with a for / next loop

javascript:document.getElementsByName("uniquename")[0].click();void(0);

More complex one clicking on all images

javascript:(function(){var imgs=document.getElementsByTagName("img");for(var i=0;i<imgs.length;i++)imgs[i].click()}());void(0);

you can extend it with an 

if imgs.name="visual/images/login-btn.png" then imgs[i].click();

 

Edited by junkew
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...