1

I want to automate to click on some link in a website.

since links on webpage are not direct link such as www.example.com/1.html.

it shows following link address for all the links I am interested in clicking

javascript:void(1)


following is the html code for that link I want to click

<a href="javascript:void(1)" onclick="server_playOn(17,2, 'est', this);">
                     Life OK  
                  </a>
user206168
  • 1,015
  • 5
  • 20
  • 40

1 Answers1

1

Once you've got a reference to the link you can just use the click method:

referenceToLink.click();
Andy G
  • 19,232
  • 5
  • 47
  • 69