[Solved] Selenium TestNG – java.lang.NullPointerException
Your test annotations does not belongs to TestNG. Replace @Before with @BeforeTest @After with @AfterTest @Test should point TestNG library 1 solved Selenium TestNG – java.lang.NullPointerException