I've created Cucumber test project and successfully configured Guice support by cucumber-guice. When I've added serenity-cucmber and configure test runner with CucumberWithSerenity I've got an error:
More than one Cucumber ObjectFactory was found in the classpath
You probably may have included, for instance, cucumber-spring AND cucumber-guice as part of
your dependencies. When this happens, Cucumber falls back to instantiating the
DefaultJavaObjectFactory implementation which doesn't provide IoC.
In order to enjoy IoC features, please remove the unnecessary dependencies from your class path.
The cause is there are two ObjectFactory implementations:
cucumber.runtime.java.guice.impl.GuiceFactory (in cucumber-guice)
cucumber.runtime.SerenityObjectFactory (in serenity-cucumber)
Is it possible to use serenity-cucumber along with cucumber guice?