I'm not sure if that's the problem because i can work with the form 
assing values to the fields of uname and upass. I've tried to find a 
solution for this issue in google but couldn't find a solution that 
works.

May be a little more information will help i'm using mechanize 2.0.1 and 
this is some of the code that i use for sending the form.

page = agent.get(url_mail)

log = page.forms.first
log.uname = "user"
log.upass = "password"

logeado = agent.submit(log)#i used this after other unsuccessful atempts 
to
#submit the form. I'm not sure if the agent.submit is clicking the right
#button but it returns a response but...
sl = logeado.field("country") #i got the error undefined method 'field' 
for Mechanize::page:0xxxxxxxx

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to