binzunu1909 / ui-test-selenium

Testing on Web API server about School Management
1 stars 0 forks source link

[Test] Shouldn't Use Junit and TestNG at the same time// Error: `java.lang.NullPointerException: Cannot invoke "org.openqa.selenium.WebDriver.get(String)" because "this.driver" is null` #2

Open Bisllly opened 1 year ago

Bisllly commented 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

Bisllly commented 1 year ago

You can change from:

This may allow you to use either TestNG or Junit, not both