From d0bc98e3375c0a93f9d36222ec81663ebd79b24b Mon Sep 17 00:00:00 2001 From: Alexei Barantsev Date: Thu, 10 Apr 2014 01:38:15 +0400 Subject: [PATCH] Adding version number to the capabilities returned by htmlunitdriver. Fixes issue 7110 --- .../client/src/org/openqa/selenium/htmlunit/HtmlUnitDriver.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/java/client/src/org/openqa/selenium/htmlunit/HtmlUnitDriver.java b/java/client/src/org/openqa/selenium/htmlunit/HtmlUnitDriver.java index c25955d458c80..0d7c6a44a8889 100755 --- a/java/client/src/org/openqa/selenium/htmlunit/HtmlUnitDriver.java +++ b/java/client/src/org/openqa/selenium/htmlunit/HtmlUnitDriver.java @@ -34,6 +34,7 @@ import com.gargoylesoftware.htmlunit.StringWebResponse; import com.gargoylesoftware.htmlunit.TopLevelWindow; import com.gargoylesoftware.htmlunit.UnexpectedPage; +import com.gargoylesoftware.htmlunit.Version; import com.gargoylesoftware.htmlunit.WaitingRefreshHandler; import com.gargoylesoftware.htmlunit.WebClient; import com.gargoylesoftware.htmlunit.WebClientOptions; @@ -443,6 +444,7 @@ public Capabilities getCapabilities() { capabilities.setPlatform(Platform.getCurrent()); capabilities.setJavascriptEnabled(isJavascriptEnabled()); + capabilities.setVersion(Version.getProductVersion()); capabilities.setCapability(SUPPORTS_FINDING_BY_CSS, true); return capabilities;