I\'ve got a Cucumber Step class that i\'m attempting to initialise a page model for all scenarios. So I added a @Before annotated method :
@Before() private void
I know this Is an old issue but I found a Solution using the 5.5.0 version of cucumber java: I added the Hooks class into the Steps package, having only the glue="Step classpath" and it worked fine for me :)
Hope that helps!!