Skip to content

Commit

Permalink
Adding version number to the capabilities returned by htmlunitdriver.…
Browse files Browse the repository at this point in the history
… Fixes issue 7110
  • Loading branch information
barancev committed Apr 9, 2014
1 parent 0a55daf commit d0bc98e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit d0bc98e

Please sign in to comment.