Yes, it should be possible provided the candidate steps are collected before 
the composite steps.

You need to ensure this in your steps factory.  Try putting the composite step 
in a separate steps class.

Else please attach a sample project reproducing the issue to a new JIRA.


> On 3 Mar 2014, at 13:30, Johnny Wong <[email protected]> wrote:
> 
> Hi -- I'd like to build composite steps, where sub-steps may be specified in 
> another class. Is this possible? When I tried it, it did not seem to find the 
> outside-of-this-class steps.
> 
> To be clearer:
> 
> StepClass1 -> extends WebDriverStep
> - StepA
> - StepB
> 
> StepClass2 -> extends WebDriverStep
> - StepC
> - StepD
> - CompositeStepAA: {StepA, StepC, StepB, StepD}  ==> This is what I am trying 
> to accomplish
> 
> Both StepClass1 and StepClass2 are injected via the stepsFactory()
> 
> 
> What is the best way to do the above? Should I have StepClass inherit from 
> StepClass1 (but will that result in double steps?)
> 
> Thanks!

Reply via email to