1

The Story:

Protractor itself is coming with a built-in webdriver-manager command line tool:

The webdriver-manager is a helper tool to easily get an instance of a Selenium Server running. Use it to download the necessary binaries with:

webdriver-manager update

Now start up a server with:

webdriver-manager start

According to webdriver-manager binary source code, it uses config.json to download a specific selenium package version into a selenium directory in the Protractor package root. For instance, now the config looks:

{
  "webdriverVersions": {
    "selenium": "2.48.2",
    "chromedriver": "2.20",
    "iedriver": "2.48.0"
  }
}

This config is then manually updated when new selenium, chrome or IE driver versions come out.

For this config, running webdriver-manager update would trigger a selenium-server-standalone-2.48.2.jar to be downloaded.

The Question:

Is it possible to have webdriver-manager to install the currently latest/dev/trunk/master selenium version? And, if not, how can I run protractor tests with the latest dev selenium package version?

alecxe
  • 462,703
  • 120
  • 1,088
  • 1,195
  • 1
    I don't know of a way to do this without hacking the script quite a bit, and even then `master` does not include a built `.jar` file, so I believe you would need to compile one from master. This would definitely be handy :\ – Nick Tomlin Dec 26 '15 at 16:40
  • 1
    @NickTomlin I think you are right, it would require compiling the `jar` manually and then placing it under `node_modules/protractor/selenium`, may be replacing an existing one. I'll try that and get back here. Thanks! – alecxe Dec 26 '15 at 16:59
  • 1
    @alecxe if you can put this compilation logic into a Dockerfile I can potentially include it in [docker-selenium](https://github.com/elgalu/docker-selenium) ;) – Leo Gallucci Dec 27 '15 at 17:01
  • 1
    @LeoGallucci nice! Then may be we can also think about allowing nightly firefox builds to be specified with, for example, `-e nightly`..but I'm still not sure how to make the nightly firefox work: http://stackoverflow.com/questions/34446868/running-protractor-against-a-nightly-firefox-build. Thanks. – alecxe Dec 27 '15 at 17:05

0 Answers0