I am trying to access launch static Webdriver instance in a different step definition class using a static method which has been defined in base class. While accessing it from different class it is giving nullpointer please help to solve this error
Here is my base class setup
Here is my Common step definition where method to invoke Webdriver instance is being called
Here is the second step definition class
Here is the console logs
Line 20 in your stack trace suggests that read.getBrowserName() is returning null. Try swapping the arguments to equalsIgnoreCase()