[wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-22 Thread Jarmo Pertman
On Jan 21, 2:38 pm, Željko Filipin zeljko.fili...@wa-research.ch wrote: On Thu, Jan 21, 2010 at 9:48 AM, Jarmo Pertman jarm...@gmail.com wrote: then there is an example of using :after? (although not :before?, though this is also available) I think :before? is deprecated because it did not

[wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-22 Thread Jarmo Pertman
I just had a case where I wanted to check needed fields, for example there's a form something like this: form action='blah' input name='field1' input name='field2' input type='submit' /form now if i press submit, then the form will have an error message something like all necessary fields

[wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-21 Thread Jarmo Pertman
Forgot to mention that it doesn't matter if you use comma or a hash in this case - result is the same. Jarmo -- 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,

Re: [wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-21 Thread Željko Filipin
On Thu, Jan 21, 2010 at 9:48 AM, Jarmo Pertman jarm...@gmail.com wrote: then there is an example of using :after? (although not :before?, though this is also available) I think :before? is deprecated because it did not work. In other words - it works okay with span, but not with input field.

Re: [wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-21 Thread Charley Baker
I've never actually used :after? or :before? either. We are still reporting issues in Jira, which does need some maintenance soon. Charley Baker blog: http://blog.charleybaker.org/ Lead Developer, Watir, http://watir.com QA Architect, Gap Inc Direct On Thu, Jan 21, 2010 at 1:02 PM, marekj

[wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-20 Thread Jarmo Pertman
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

Re: [wtr-general] Re: :after? and :before? methods not supported for all elements?

2010-01-20 Thread marekj
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