I had a small application I wrote using mechanize 0.7.7, and I just recently
upgraded. I tried to run the application, but had nothing but epic fail.
The main issue that I''m having at this moment is that when I click on
this
one link, it just sits there and hangs. I''m not sure how to see what is
going on during all this. I''ve tried to access this link a few
different
ways.
@login_url =
''http://smallbusiness.yahoo.com/services/index.php''
@browser = WWW::Mechanize.new do |agent|
agent.user_agent_alias = ''Mac Mozilla''
agent.follow_meta_refresh = true
agent.keep_alive = false
end
@login_page = @browser.get(@login_url)
#this is where it hangs forever....
This is the other way I tried it.
@url = ''http://smallbusiness.yahoo.com/ecommerce/''
@browser = WWW::Mechanize.new do |agent|
agent.user_agent_alias = ''Mac Mozilla''
agent.follow_meta_refresh = true
agent.keep_alive = false
end
@page = @browser.get(@url)
@login_link = @page.link_with(:text => ''Small Business'')
@login_page = @link.click
#again with the hanging forever...
Any ideas what I can try?
Thanks,
~Jeremy
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://rubyforge.org/pipermail/mechanize-users/attachments/20091022/93226b55/attachment-0001.html>