As i remember then OperaWatir has similar functionality to jQuery finders.
Doing jQuery finders is easy, since it is almost already supported by using
:css as locator. The hard part is what to do with the results. Here's an
example:
browser.element(".row).click

What should that line above do? Should it click only on the first result or
should it click on every result? I find myself pretty often confused as to
what function call will be invoked on all results found by jquery and what
is invoked only on the first one. We could however simplify it to always
work on the first result. In other words - we could allow only one
parameter for #element to be used with css selectors like jquery does.
However i'm not sure this would be the thing needed for increasing
popularity of Watir (is watir not so popular anymore?).

J.

On Fri, Oct 12, 2012 at 11:37 PM, Paul Rogers <paul.rog...@shaw.ca> wrote:

> I have often thought that the watir  'finders' should have been
> modeled after jquery. Except that I dont think jquery  was around
> then.
>
> I have frequently wondered about a watir-jquery library that would
> allow some very close syntax of jquery to be used. And, if jquery is
> on the page, to use that where appropriate.
>
> I suspect it would make people who are currently web developers more
> interested in watir.
>
> Paul
>
> On Fri, Oct 12, 2012 at 12:43 PM, Jarmo <jarm...@gmail.com> wrote:
> > I agree. Sometimes a good readme is enough to master something :)
> >
> > J.
> >
> >
> > On Fri, Oct 12, 2012 at 6:43 PM, Hugh McGowan <colinsda...@gmail.com>
> wrote:
> >>
> >> I don't think this is a requirement - we should pick the best tool not
> the
> >> best-documented tool :)
> >>
> >> On Fri, Oct 12, 2012 at 10:13 AM, Željko Filipin
> >> <zeljko.fili...@gmail.com> wrote:
> >>>
> >>> On Thu, Oct 11, 2012 at 2:35 PM, Željko Filipin
> >>> <zeljko.fili...@gmail.com> wrote:
> >>> > What do you think about adding page-object gem[1] to watir project?
> >>>
> >>> I almost forgot to mention it. One of the reasons I would recommend
> >>> page-object gem before other similar gems is that there is a book[1]
> that
> >>> shows how to use it.
> >>>
> >>> Željko
> >>> --
> >>> [1] https://leanpub.com/cucumber_and_cheese
> >>>
> >>> _______________________________________________
> >>> Wtr-development mailing list
> >>> Wtr-development@rubyforge.org
> >>> http://rubyforge.org/mailman/listinfo/wtr-development
> >>
> >>
> >>
> >> _______________________________________________
> >> Wtr-development mailing list
> >> Wtr-development@rubyforge.org
> >> http://rubyforge.org/mailman/listinfo/wtr-development
> >
> >
> >
> > _______________________________________________
> > Wtr-development mailing list
> > Wtr-development@rubyforge.org
> > http://rubyforge.org/mailman/listinfo/wtr-development
> _______________________________________________
> Wtr-development mailing list
> Wtr-development@rubyforge.org
> http://rubyforge.org/mailman/listinfo/wtr-development
>
_______________________________________________
Wtr-development mailing list
Wtr-development@rubyforge.org
http://rubyforge.org/mailman/listinfo/wtr-development

Reply via email to