I have no trouble reproducing this.
Also...Doing so, crashes IE
Below is from IRB
irb(main):037:0> ie.text_fields.each {|x| puts x }
type: text
id: ctl00_ContentPlaceHolderContentMain_UserName
name: ctl00$ContentPlaceHolderContentMain$UserName
value:
disabled: false
length: 20
max length: 2147483647
read only: false
type: password
id: ctl00_ContentPlaceHolderContentMain_Password
name: ctl00$ContentPlaceHolderContentMain$Password
value:
disabled: false
length: 20
max length: 2147483647
read only: false
=> 0
irb(main):038:0> ie.text_field(:name, /user/i).set("wtf")
NoMethodError: undefined method `scrollIntoView' for nil:NilClass
from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.5.1.1065/./watir.rb:3829:in
`set'
from (irb):38
from :0
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=3607&messageID=10225#10225
_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general