I would like to find the button on a web page that says for example 'Enter" and when found on the page click on it ?
do you know way to do it ?
Thanks for your help
Jump to content
I use 2 methods to do this in Firefox.
1: Press tab to navigate webpage elements.
Handy if the button is within 10 Tabs, otherwise it feels silly.
Method 1 is easy enough to sort out on it's own. Here's an example of Method 2 and how to use it:
This example uses http://www.autohotkey.com/board/
At the bottom of the page we have displayed users currently online. Let's say we need to open the profile of whatever the first name is of that list.
Step 1, Right click the first name under where it says "# members, # guests, # anonymous users (See full list)".
In my case it's my username so I'll assume it will be your own if you're signed in. Click Inspect element.
Step 2, Look for something that says, id="copy_this_text" For this example it was anonymous_element_15
You'll be able to tell here if the item in question is a button.
You can test it out by just pasting the underlined text into your browsers url.
Below is a fully functional example.
The function TabCheck isn't used, but it can come in handy for error checking. TabCheck ensures you went to the right place, or checks to see if you haven't gone to the next webpage yet. It does not ensure that the webpage you're on is fully loaded.
For Chrome use Tampermonkey extensions
For Firefox they say there is Greasemonkey add-on
write a script.
I have made something exactly for this purpose. In case you are still around please tell details. that is The Inspect Element etc.