Null Pointer exception when trying to general screenshot. | Selenium Forum
M
Posted on 01/06/2016
Helllo Sir

I am trying to generate an error screenshot for each of failed test cases.

In attached solution, I am reading data from excel file and trying to login when any test cases failed in Test NG i would like to generate error screenshot for that but i am getting Null pointer exception.

Can you please look in to this error and provide me resolution ?

I have attached the solution.

Please respond.

Thanks

M
Replied on 02/06/2016

is it giving you an error/exception?


M
Replied on 02/06/2016

Issue is fixed now there was a problem in

Webdriver driver = new FirefoxDriver(); which should be driver = new FirefoxDriver();

Thanks