I've never needed to do this type of access for text_field container.text_field(:after? => (element)) is Watir supposed to conform to this syntax? have you tried a comma instead of hash? container.text_field(:after?, (element))
yeah, looking at the code it appers: in span we use TaggedElementLocator while the text_field uses InputElementLocator and they both use diff def match? implementations. Can you provide the html you test against? (well, a relevant snippet) and if indeed this syntax should be the way to access textfield then please open an issue marekj Watirloo: Semantic Page Objects in UseCases http://github.com/marekj/watirloo/ Support Watir Project http://pledgie.com/campaigns/2982 On Wed, Jan 20, 2010 at 8:53 AM, Jarmo Pertman <jarm...@gmail.com> wrote: > Sorry, stacktrace got truncated. Here is full one: > c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/locator.rb:127:in > `before?': wrong number of arguments (0 > for 1) (ArgumentError) > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:127:in `send' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:127:in `match?' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:112:in `locate' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:110:in `each' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:110:in `locate' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:108:in `catch' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:108:in `locate' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:105:in `each' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > locator.rb:105:in `locate' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > container.rb:742:in `locate_input_element' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > input_elements.rb:5:in `locate' > from c:/ruby/lib/ruby/gems/1.8/gems/watir-1.6.2/lib/watir/ > element.rb:49:in `assert_exists' > from (eval):2:in `html' > from S:/ui-tests/blahhh.rb:16 > > -- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To post to this group, send email to watir-general@googlegroups.com > Before posting, please read the following guidelines: > http://wiki.openqa.org/display/WTR/Support > To unsubscribe from this group, send email to > watir-general-unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/watir-general >
-- You received this message because you are subscribed to the Google Groups "Watir General" group. To post to this group, send email to watir-general@googlegroups.com Before posting, please read the following guidelines: http://wiki.openqa.org/display/WTR/Support To unsubscribe from this group, send email to watir-general-unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/watir-general