1

I am trying click a link that appears after I've logged in with Rails + Mechanize, but it returns "Cookie should be enabled". I've checked the cookie in the my Mechanize object (mechanize.cookie_jar.save_as('cookies.yml')) and it exists and is the same cookie my browser sent when I accessed the site (I checked with FireBug). But I can't login.

Why doesn't it work for me?

blahdiblah
  • 33,069
  • 21
  • 98
  • 152
Dzmitry
  • 749
  • 2
  • 11
  • 25
  • Login is tricky. Often you will have to look at the network traffic and do a post from mechanize. Odds are good it is not a cookie problem. – zhon Dec 06 '13 at 15:49

0 Answers0