I have a Simple Selenium code and i am Trying to run it on Remote Browser(Browser Stack).Trying to Open a Browser and Logging in to the application. So my code is running and i am able to open the browser but unable to log in. What am i doing wrong.
This is the Error message displayed
here https://www.hzelectric.com/
PASSED: URLCHECK
FAILED: ARegistrationandLogout
java.lang.NullPointerException at com.testngsample.SampleTest.ARegistrationandLogout(SampleTest.java:40) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source)