I am facing an issue with NullPointerException. I tried as much as possible but I\'m unable to resolve this. I am implementing a POM model(Selenium) for my project.
Your driver seems to be null what you can do to avoid this situation is to instantiate your driver reference.
In your test class you can instantiate your driver.
public class VendorsHomePageTest {
public WebDriver driver;
@Test
public void verifyVendorsHomePageTest() throws Exception {
driver = new FirefoxDriver(); // or whatever browser you want.
// Here you can initialise the elements in `PageObject` class.
VendorsHomePageApp vhpapp= PageFactory.initElements(driver, VendorsHomePageApp.class);
// Rest of your code
}
}