I’m using in my application as a Maven dependency. Now I’m looking for a way to log the used Selenium 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 and though this works in a Java in a groovy 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!



Source link https://sqa.stackexchange.com/questions/12602/getting-and--the-selenium-version-used-in-a-groovy-project

LEAVE A REPLY

Please enter your comment!
Please enter your name here