You are declaring a static
IbiboTest
class member:
static WebDriver driver;
In your
setUp()
function you are declaring another local instance:
WebDriver driver = new ChromeDriver();
As a result, the static class member is still uninitialised and you get a null pointer exception in your
testIbiboHomePage()
function.
Solution:
Remove the type when creating the driver in
setUp()
:
driver = new ChromeDriver();