4

I'm using Selenium in my Groovy application as a Maven dependency. Now I'm looking for a way to log the used Selenium Version to the console. I tried this:

 BuildInfo info = new BuildInfo();
 def infoString = info.toString();

But infoString only contains:

"Build info: version: 'unknown', revision: 'unknown', time: 'unknown'".

I also tried reading the version from the classpath of the project and though this works in a Java project in a groovy project the classpath no longer contains the used selenium version.

In a java project, the infoString also contains the used version, revision etc.

Any help would be very much appreciated!

JAINAM
1,8453 gold badges19 silver badges39 bronze badges
asked Apr 8, 2015 at 14:08
1

1 Answer 1

0

I am not sure on how to get the Selenium version through code. I dont think there are any methods to do so.

But, the version is clearly mentioned in the CHANGELOG file that comes along with your Selenium installation.

You can read the version from this file. Below is the content of the log file:

v2.43.0 ======= WebDriver:

  • Updating Native events to support Firefox 24, 31 and 32 * Add note on stale element checks and a WebElement.................
answered Apr 11, 2015 at 9:09

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

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.