It is generally considered a bad idea to nest cucumber steps. Implementation details should be abstracted into a page object or site controller. Then you can reference that code as often as you want.
On Jun 14, 2017 9:06 AM, "江南" <[email protected]> wrote: > Hi, > > I am using Ruby Watir and I want to call a sequence of steps within a > method is there a way to call them without specify them individually in a > method? > > e.g. > step 'Given I am on the page' > step 'And I select an item' > > > > Thanks > > -- > -- > Before posting, please read http://watir.com/support. In short: search > before you ask, be nice. > > [email protected] > http://groups.google.com/group/watir-general > [email protected] > > --- > You received this message because you are subscribed to the Google Groups > "Watir General" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. [email protected] http://groups.google.com/group/watir-general [email protected] --- You received this message because you are subscribed to the Google Groups "Watir General" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
