Open Bisllly opened 1 year ago
Should use only Junit or TestNG, NOT BOTH. If you encountered this error, maybe it's because you are using both
java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.get(String)" because "this.driver" is null
You can change from:
@BeforeTest
@Before
@AfterTest
@After
This may allow you to use either TestNG or Junit, not both
Should use only Junit or TestNG, NOT BOTH. If you encountered this error, maybe it's because you are using both
java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.get(String)" because "this.driver" is null