Open Chankami opened 4 years ago
That's not how Serenity works. You don't use the @Managed annotation with Cucumber, and you don't place a driver field in a Page Object class. Have a look at https://serenity-bdd.github.io/theserenitybook/latest/index.html.
Thanks alot
I'm using serenity cucumber starter pack. Whenever I use WebDriver instance it throws a null pointer. My requirement is to pass the driver to a third-party lib. When print current URL also it throws the NullPointer.
Also, when tried to use driver. get() instead of open() it thorws a null pointer
@Step("Navigates to Homepage") public void navigateHomePage() { driver.get("https://ishopchangi.com/"); //open(); commons.waitForPageLoad(); }
Can you pls help me to sort this .