I have created a simple scripts .
in one package P1 with Main function and then calling other package class and its function in this main. but it giving me error of
Exception in thread "main" java.lang.NullPointerException
Please suggest how to resolve here are the line of codes from both scripts.
Script with Main ------
Start by creating objects. Make the driver not static. Initialise it in the constructor. Move all that code out of the main method. Make the main method short. Very short.Everything else should be in other methods.