3

I'd like to be able to click a single button (not in a form) with mechanize/nokogiri.

I just don't get how I could do this.

eg:

<button class="ui-FollowButton" type="button">
  <span class="buttonText">Folgen</span>
</button>

Hope somebody could help me! :)

1
  • You're expecting some kind of javascript event to get fired, but those will never happen with mechanize. Nov 24, 2014 at 1:01

1 Answer 1

3

You can probably use "watir" insteed. It can mimic the actions (such as clicking, rolling the page) in a browser.

1
  • I'm using watir now! :) Thank you sir! Dec 4, 2014 at 8:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.