at org.openqa.selenium.support.pagefactory.DefaultElementLocator.findElement(DefaultElementLocator.java:69) code example
Example: java.lang.NullPointerException at org.openqa.selenium.support.pagefactory.findElement(DefaultElementLocator.java:69)
public TopPanel(WebDriver driver) {
this.driver = driver; //<< remove as this is already initialized and it is treated as duplicate
PageFactory.initElements(driver, this);
}