Aishu
Aishu

Reputation: 1320

Selenium - Not able to import package 'org.openqa.selenium.environment'

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

Upvotes: 0

Views: 482

Answers (2)

racraman
racraman

Reputation: 5034

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.

Upvotes: 1

Guy
Guy

Reputation: 50809

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

Upvotes: 0

Related Questions