From: Jeremy Woertink Date: 2008-08-13T02:26:27+09:00 Subject: Re: help with mechanize I have also tried this code, and it does the same thing @store_index = @store_manager.form_with(:name => 'a') do |form| form['passwd'] = @security_key end.submit It just stops. Is there a way I can see what it is doing? I'm not sure how to fix this problem. Could have anything to do with it being an https://? Thanks, ~Jeremy Jeremy Woertink wrote: > I have another issue. The fix you gave me worked, but now i'm getting > stuck on this form. > > I can get logged in just fine, but sometimes I'm asked to put in an > additional password. When this form comes up, I find the form, but when > I call .submit, or .click_button it just sits there. I let it sit there > while I went to lunch and came back an hour later and nothing had > happened. I turned the logging on, and I'm not seeing anything helpful. > I have to just do a ctrl+C to make it stop, but when I do, I get this > error. > > c:/ruby/lib/ruby/1.8/net/protocol.rb:133:in `sysread': Interrupt > from c:/ruby/lib/ruby/1.8/net/protocol.rb:133:in `rbuf_fill' > from c:/ruby/lib/ruby/1.8/timeout.rb:56:in `timeout' > from c:/ruby/lib/ruby/1.8/timeout.rb:76:in `timeout' > from c:/ruby/lib/ruby/1.8/net/protocol.rb:132:in `rbuf_fill' > from c:/ruby/lib/ruby/1.8/net/protocol.rb:116:in `readuntil' > from c:/ruby/lib/ruby/1.8/net/protocol.rb:126:in `readline' > from c:/ruby/lib/ruby/1.8/net/http.rb:2029:in `read_status_line' > from c:/ruby/lib/ruby/1.8/net/http.rb:2018:in `read_new' > ... 8 levels... > from scrape.rb:87:in `each' > from scrape.rb:87 > from > c:/ruby/lib/ruby/gems/1.8/gems/mechanize-0.7.7/lib/www/mechanize.rb > :217:in `get' > from scrape.rb:58 > ... > 87 @store_manager.forms.each do |form| > 88 form['passwd'] = @security_key > 89 form.click_button > 90 end > ... > > I can go through a normal browser and follow the steps normally and it > works fine. > > Any ideas? > > Thanks, > ~Jeremy -- Posted via http://www.ruby-forum.com/.