A
A
Alena2015-03-25 11:24:38
Java
Alena, 2015-03-25 11:24:38

Error in setting up eclipse environment (for autotests)?

Good afternoon!
I'm starting to do autotests.
Eclipse gives error driver cannot be resolved
Help(
e3947ebddfbe44aab4fcc92e08fd0f75.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
Timur, 2015-03-25
@Kossmmooss

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 question

Ask a Question

731 491 924 answers to any question