InvocationTargetException error - PageFactor.instantiatePage

65 views Asked by At

I was working around Selenium POM and it actually worked the other day. I tried tweaking my code and got this error. I don't understand what changed from the PageFactory.class as I didn't touch it. What it does is just simple log in and log out. But when it is in the log in page, it doesn't input the values.

I have these classes:

Main Test Case

Vendor Page + log out method

Login Page + log in method

Class for WebDriver

This is the error that I got:

Error Message

2nd line of error

3rd line of error

0

There are 0 answers