Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
I am not very familiar with Selenium.
But your baseUri and driver variables are not declared in this class and are not initialized.
Either they are initialized in TestBase , but have an inappropriate access modifier (therefore they are not visible in this class), put the public modifier (or protected if the classes are in the same package)
And instead of "extends selenium.pages.TestBase" write simply extends TestBase and press ctrl +shift+o (organize import);
It is also not clear why you need com.mysql.jdbc.Driver ?
You probably meant to write WebDriver.get("baseUrl + "/login.html"")
It will open the login page.
In general, I advise you to read the basics of Java a little. Otherwise it will be hard :)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question