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
  • 758
  • 1
  • 7
  • 17
  • 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
  • 26,189
  • 9
  • 66
  • 118