0

How can I call onclick method instead of submit using ruby Mechanize?

<input type="Submit" value="Search" name="B2" onclick="getABC()">
Mohamed Rafiq P
  • 680
  • 1
  • 5
  • 15
  • Possible duplicate of [How do I use Mechanize to process JavaScript?](http://stackoverflow.com/questions/802225/how-do-i-use-mechanize-to-process-javascript) – orde Oct 26 '16 at 15:21

1 Answers1

0

you can't, mechanize doesn't run javascript. use selenium or phantom

max pleaner
  • 25,009
  • 9
  • 61
  • 111