#28 new
yoram

find_form_based_on_tage retruns nil @@current_form

Reported by yoram | September 21st, 2009 @ 05:13 PM

gems installed:
scrubyt-0.4.06
mechanize-0.9.3
hpricot-0.8.1-x86-mswin32

I was able to get find_form_based_on_tag to return the correct @@current_form by substituting the following:
break if @@current_form.form_node.attributes[lookup_attribute_name].to_s == lookup_attribute_value.to_s

for
break if @@current_form.form_node.attributes[lookup_attribute_name] == lookup_attribute_value

on line 241 of core\navigation\agents\mechanize.rb

No comments found

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

A simple to learn and use, yet powerful web scraping toolkit written in Ruby.

People watching this ticket

Pages