0

mechanize ruby (i.e. http://docs.seattlerb.org/mechanize/) - how do do wait for a javascript based update to a page?

I have a site that requires login, but then takes many seconds to login, but after which it's really handled (it appears) as javascript.

Like is there a way to refresh the results of:

 page = agent.submit(login_form)
Greg
  • 34,042
  • 79
  • 253
  • 454
  • 1
    http://stackoverflow.com/questions/28908915/get-a-links-href-using-mechanize - minute ago – iced Mar 06 '15 at 22:51
  • Just like @iced is saying: mechanize doesn't handle js. As an alternative, you could use a webdriver-based solution (e.g. selenium, gebish, watir). – orde Mar 06 '15 at 23:05
  • oh, oh well then :( thanks for pointing this out – Greg Mar 06 '15 at 23:08

0 Answers0