Proposal: the need for and usage of xpath for cucumber steps

3 views
Skip to first unread message

tomtt

unread,
Nov 16, 2009, 11:03:32 AM11/16/09
to Ruby Manor
When doing large cucumber suites for website development I find there
are often situations where css selectors and/or have_tag matchers just
don't cut it.

The medicine for this are xpaths, but they take a while to wrap your
head around and to see how they can be useful. I have a couple of
examples from the battlefield that should demonstrate these things.

Anybody interested in a talk like this?

Tom.

-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~
Tom ten Thij
Unboxed Consulting, http://unboxedconsulting.com
T: +44 20 3137 2943 F: +44 20 7183 4251
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~

Kerry Buckley

unread,
Nov 16, 2009, 11:17:12 AM11/16/09
to ruby-...@googlegroups.com
On Mon, Nov 16, 2009 at 4:03 PM, tomtt <tomte...@gmail.com> wrote:
>
> When doing large cucumber suites for website development I find there
> are often situations where css selectors and/or have_tag matchers just
> don't cut it.
>
> The medicine for this are xpaths, but they take a while to wrap your
> head around and to see how they can be useful. I have a couple of
> examples from the battlefield that should demonstrate these things.
>
> Anybody interested in a talk like this?

I was actually in the process of debugging some Cucumber steps using
XPaths (via HPricot) when your e-mail arrived. So yes, I'd be
interested.

Kerry

Reply all
Reply to author
Forward
0 new messages