You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.
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.
public class ScreenShots extends PageObject {
@Managed
WebDriver driver;
public void capturefullPageScreenshotry()
XX.shootPage(driver,XX.WHOLE_PAGE).save();
System.out.println("currentURL"+driver.getCurrentUrl());
}}
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 .
The text was updated successfully, but these errors were encountered:
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 .
The text was updated successfully, but these errors were encountered: