I just had a case where I wanted to check needed fields, for example
there's a form something like this:
now if i press submit, then the form will have an error message
something like "all necessary fields need to be filled", and the form
will be something like this:
*
*
On Jan 21, 2:38 pm, Željko Filipin
wrote:
> On Thu, Jan 21, 2010 at 9:48 AM, Jarmo Pertman 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.
:before? seems to work for me with
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 wrot
Then this :after? usage looks like a bug.
Zeljko, do we still use jira for that?
Where should we log and track this issue? jira? lighthouse? github?
thoughts please?
marekj
Watirloo: Semantic Page Objects in UseCases
http://github.com/marekj/watirloo/
Support Watir Project http://pledgie.com/camp
On Thu, Jan 21, 2010 at 9:48 AM, Jarmo Pertman 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. Is
> there anyw
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, ple
That's what was my question - is it expected behaviour that text_field
should not be accessed this way.
If you look here
http://wiki.openqa.org/display/WTR/Ways+Available+To+Identify+HTML+Element
then there is an example of using :after? (although not :before?,
though this is also available), but
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 TaggedElementLoc
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/