0

I'm not able to import the package 'import org.openqa.selenium.environment;' It says it cannot be resolved when trying to import in eclipse.

Selenium version - 3.141.59
Eclipse - Neon
Java - 1.7

But i can be able to find this in the selenium source code.
https://github.com/SeleniumHQ/selenium/tree/master/java/client/test/org/openqa/selenium/environment

Not sure, whether i'm missing something here. enter image description here

enter image description here

2 Answers 2

1

But i can be able to find this in the selenium source code. https://github.com/SeleniumHQ/selenium/tree/master/java/client/test/org/openqa/selenium/environment

Notice that that URL contains /test/ . In other words, that class belongs to the unit tests rather than the production code, which is why you can't find it in the production jars.

Sign up to request clarification or add additional context in comments.

Comments

0

Not all files in GitHub are exposed in the API. There is no environment package available.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.