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();
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!