watir/watir-webdriver — Issue #118: NoMethodError: undefined method `set' for #<Watir::TextArea:0x007fb73b21cbc8>
Author: zeljkofilipin
Created: 2012-01-25 18:04:40+00:00
State: open

$ ruby -v
ruby 1.9.3p0 (2011-10-30 revision 33570) [x86_64-darwin11.2.0]

$ gem -v
1.8.15

$ gem list selenium-webdriver
*** LOCAL GEMS ***
selenium-webdriver (2.17.0)

$ gem list watir-webdriver
*** LOCAL GEMS ***
watir-webdriver (0.4.1)

$ irb
> require "watir-webdriver"
=> true

> browser = Watir::Browser.new :firefox
=> #

> browser.goto "http://bit.ly/watir-example"
=> "https://spreadsheets.google.com/viewform?hl=en&formkey=dDliTk5XU1R4RUMtb2c1WDZxWHNENmc6MQ#gid=0"

> browser.element(:css => "textarea").to_subtype.set "text"
NoMethodError: undefined method `set' for #
from /Users/zeljko/.rvm/gems/ruby-1.9.3-p0/gems/watir-webdriver-0.4.1/lib/watir-webdriver/elements/element.rb:317:in `method_missing'
from (irb):6
from /Users/zeljko/.rvm/rubies/ruby-1.9.3-p0/bin/irb:16:in `

'

Environment: Mac OS X 10.7.2, Firefox 9.0.1.