Sign in to follow this  
Followers 0
Clerythecleric

Trying to click button using the FF extention.

4 posts in this topic

#1 ·  Posted (edited)

 

So i'm making a tool to use at work, its nearly complete.

It scrapes a local intranet page into a txt file, Finds a specific link within in, copys to clipboard, moves tab, pastes into desired fileds now i just need it to click a button however i'm unable to as this button has no ID, class, name or anything. Please can anyone assist me.

I have tried used _FFClick("submit", "id"), _FFClick("submit","name") , _FFClick("submit","class")

ect...

HTML:

<button type="submit">   &nbsp;&nbsp; Go &nbsp;&nbsp;   <div><div><div><div></div></div></div></div></button>
Edited by Clerythecleric

Share this post


Link to post
Share on other sites



#2 ·  Posted

Does the web page contain a form? If so, then usually you would use _FFFormSubmit() for this.

Share this post


Link to post
Share on other sites

#3 ·  Posted

Hi thanks for the reply, it does have a form however when using '_FFFormSubmit() it just sort of refreshes the page? Clears the input field and input boxes i have filed in and refreshes the page?

Share this post


Link to post
Share on other sites

#4 ·  Posted

Ahh i fixed it, I had to add this line (just incase it helps anyone else)

 

"_FFFormSubmit("metadataValidatorForm", "id","click")"

(with the 'click' it just refreshes)

 

thanks for your help buddy.

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