P
Peter Szinek
Hello,
I am using mechanize 0.6.3. On Aaron's blog I have found this example:
form.selectlist.options[2].select
however, for me, 'puts form.methods.sort' revealed that form does not
have a method 'selectlist'. What's up? I am doing something wrong?
Here is the code I am using:
require 'rubygems'
require 'mechanize'
agent = WWW::Mechanize.new
page = agent.get 'www.some-page.com'
form = page.forms.with.name('formname').first
and this form does not have a method selectlist. (just in case:
page.forms.with.name('formname') == 'WWW::Mechanize::Form' and not nil
or other kind of nonsense
Thanks,
Peter
__
http://www.rubyrailways.com
I am using mechanize 0.6.3. On Aaron's blog I have found this example:
form.selectlist.options[2].select
however, for me, 'puts form.methods.sort' revealed that form does not
have a method 'selectlist'. What's up? I am doing something wrong?
Here is the code I am using:
require 'rubygems'
require 'mechanize'
agent = WWW::Mechanize.new
page = agent.get 'www.some-page.com'
form = page.forms.with.name('formname').first
and this form does not have a method selectlist. (just in case:
page.forms.with.name('formname') == 'WWW::Mechanize::Form' and not nil
or other kind of nonsense
Thanks,
Peter
__
http://www.rubyrailways.com