Jump to content

How to auto-click on webpage event link after webpage is loaded?


pstein

Recommended Posts

As you know there are many webpages with elements which can be clicked.

One of these pages are the ones from ebay.

Pretty much at the bottom of each auction there is a kind of drop down labelled (in german) "Vollständige information" which mean full contact details.

When the users click on it the phone number and the email address of the sellers is revealed.

Have a look at the attached snapshot (I changed the phone num and email for privacy):

I would like to apply now a javascript/jQuery command script which performs this click AUTOMATICALLY when the webpage is loaded completely.

How can I achieve this?

As you can see from the Firefox webdeveloper pane snapshot an event is defined for the link. But what next?

What I need is something like this (in  jQuery notation):

$("a:contains("Vollständige Informationen").click();

But the above command does not work.

Any other suggestion?

 

 

 

auto-click.png

Edited by pstein
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
×
×
  • Create New...