Thanks for the report. It's been logged.

http://rubyforge.org/tracker/index.php?group_id=104&atid=487

At 09:31 AM 7/26/2005, you wrote:
There seems to be a bug in text_field.to_s:

-----
HTML (valid):

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd";>

-----
IRB:

irb
require 'watir'
ie = Watir::IE.attach(:title, //)
ie.textField(:index, 1).to_s
-----
OUTPUT:

WIN32OLERuntimeError: Unknown property or method `size'
    HRESULT error code:0x80020006
      Unknown name.
        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3470:in
`method_missing'
        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3470:in `size'
        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3480:in
`text_string_creator'
        from C:/ruby/lib/ruby/site_ruby/1.8/watir.rb:3490:in `to_s'
        from (irb):3
        from :0
-----
It works just fine if instead of

<textarea rows="2" cols="10">
</textarea>

there is

<input type="text" />

or

<input type="password" />.

Zeljko

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

_____________________
 Bret Pettichord
 www.pettichord.com

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to