Hi,<br><br>I've recently had some trouble setting form values in my code - for example:<br><br>require 'rubygems'<br>require 'mechanize'<br>def save(pagename, content, editsummary = '')<br> agent = WWW::
Mechanize.new<br> agent.user_agent = 'Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)'<br> page = agent.get('<a href="http://en.wikipedia.org/w/index.php?title=">http://en.wikipedia.org/w/index.php?title=
</a>' + pagename + '&action=edit')<br> form = page.forms.with.name("editform").first<br> form.wpTextbox1 = content<br> form.wpSummary = editsummary<br> page = agent.submit form<br>end
<br>save('User:Tim.bounceback/testing', 'bleh')<br><br>Yields the following error message:<br>bleh.rb:8:in `save': undefined method `wpTextbox1=' for nil:NilClass (NoMethodError)<br> from bleh.rb
:12<br>Any help would be appreciated<br><br>Thanks!<br><br>Tim<br>