Hello.

I've tried something like this:
puts b.span(:after? => b.text_field(:id => "blah")).html

and it works, but if I try it with text_field, like this:
puts b.text_field(:after? => b.text_field(:id => "blah")).html

then I get this stacktrace:
wrong number of arguments (0 for 1)
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/locator.rb:127:in
`after?'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/locator.rb:127:in
`send'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/locator.rb:127:in
`match?'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/locator.rb:112:in
`locate'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/locator.rb:110:in
`each'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/locator.rb:110:in
`locate'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/locator.rb:108:in
`catch'
c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/locator.rb:108:in
`locate'

Is this expected behaviour? I tried to search for "after?" method from
Watir's source code, but only place I found it was in element.rb,
where an alias was made.

I'm using Watir 1.6.2 and IE as a browser. Didn't see any changes
related with this method from 1.6.5 releasenotes also.

Jarmo
-- 
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general

Reply via email to