3
votes

How to update selenium server stand alone in protractor? I need to update it to v 2.47.0.Because Firefox version 38 not supporting in v 2.44.0

When I use following comment, node node_modules\protractor\bin\webdriver-manager update

it is saying, selenium standalone is up to date. chromedriver is up to date.

Please help me.

3

3 Answers

3
votes

You can change the version webdriver-manager downloads by altering Protractor's config.json file...

  1. Edit Protractor's config file: node_modules/protractor/config.json
  2. Change the selenium version to whatever you need. eg. "selenium": "2.47.1",
  3. Run webdriver-manager update

You should be good to go.

2
votes

The best way is to manage versioning through package.json, to ensure that everyone will get same standalone servers.

We just solved this issue in my team by fixing the minor version of protractor to "~2.1.0" in package.json, to make sure we get standalone v2.45.0 when we do ./node_modules/protractor/bin/webdriver-manager update --standalone.

So in your case, try setting protractor to something like "~2.5.0" in package.json, and after you do npm install and webdriver-manager update --standalone you'll get v2.47.0.

Demo:

updating package.json

npm install

selenium version updated

getting the right version

Note:

After running npm install you will see that the selenium version defined in node_modules/protractor/config.json that Brine mentioned, is updated to the corresponding protractor version.

0
votes

You can update selenium-server-standalone jar in two ways :

  1. Update to latest version :
 webdriver-manager update --standalone

2.a. Update to Specific version globally :

Globally means at : user's AppData location

"C:\Users\pritam\AppData\Roaming\npm\node_modules\protractor\node_modules\webdriver-manager\selenium"
 webdriver-manager update --versions.standalone "specific_version"

Example :

 webdriver-manager update --versions.standalone 3.0.1

2.b. Update to Specific version for specific project :

 node ./node_modules/protractor/bin/webdriver-manager update --versions.standalone "specific version"

Example :

 node ./node_modules/protractor/bin/webdriver-manager update --versions.standalone 3.0.1