mercredi 24 octobre 2018

Unable to Run my Selenium code Using Browser Stack

enter image description hereI 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

enter code 

herehttps://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)

enter image description here

Aucun commentaire:

Enregistrer un commentaire