Cucumber Record ID

Posted by drakea on Stack Overflow See other posts from Stack Overflow or by drakea
Published on 2010-03-17T01:16:22Z Indexed on 2010/03/17 1:21 UTC
Read the original article Hit count: 384

Given the following in Cucumber:

Given a car exists with title: "Toyota"
And I go to path "/cars"
And I follow "Toyota Page"
And I should be on path "/cars/CAR_ID"
Where CAR_ID is the ID of the car titled "Toyota".

How do I figure out that ID?

Thanks!

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about cucumber