> It's looking like I'm going to have to separate those steps out. The
> problem is that each step (which uses page objects) will then have
> lots of duplicated code.
Just factor the duplicated code out into a helper method. It's much easier to read two simple step defs than a gnarly regexp.
cheers,
Matt
--
Freelance programmer & coach
Author, http://pragprog.com/book/hwcuc/the-cucumber-book (with Aslak Hellesøy)
Founder, http://relishapp.com
+44(0)7974430184 | http://twitter.com/mattwynne