New answers tagged exception
If you are using Page Factory we need to initialize the Page Object: You can initialize with the help of below sample code: driver = new FirefoxDriver(); driver.get(baseUrl); Scorex_LoginTestCases loginTest = PageFactory.initElements(driver,Scorex_LoginTestCases.class); loginTest.Scorex_valid_email_password(); And please follow the conventions as method ...
On the Scorex_LoginTestCases (Btw, we do not use underscore in names in Java (See conventions), the objects objLogin and objHome are not initialized. On the TestBase, you should initialize them using the PageFactory's method initElements. You can see a sample here.
Top 50 recent answers are included