Please try this code:

document.getElementById("reason_txt").innerHTML="enter some comments"

Anyway if your code works with Ruby 1.8.7, so why you don't like it ?

Thanks,
Sergii

On Feb 23, 3:17 am, Zhimin <[email protected]> wrote:
> Hi there,
>
> The following Watir (1.7.1) scripts, enter text in a textarea, ran
> fine with Ruby 1.8.7
>   browser = Watir::Browser.start("http://testwisely.com/demo/survey";)
>   browser.text_field(:id, "reason_txt").set("enter some comments")
>
> Returned error with Ruby 1.9.2p180 on Windows XP SP3
>
>  unknown property or method: `maxlength' (NoMethodError)
>     HRESULT error code:0x80020006
>       Unknown name.
>         from c:/rubyshell-1.9.2/ruby/lib/ruby/gems/1.9.1/gems/
> watir-1.7.1/lib/wati/input_elements.rb:250:in `maxlength'
>
> Cheers,
> Zhimin

-- 
Before posting, please read http://watir.com/support. In short: search before 
you ask, be nice.

[email protected]
http://groups.google.com/group/watir-general
[email protected]

Reply via email to