Protractor in STS IDE -> Could not find update-config.json

后端 未结 8 464
我寻月下人不归
我寻月下人不归 2020-12-09 08:06

Currently I have Protractor v.5.1.1, Node.js v.6.10.0

All protractor tests work in window console but when I try to run them from STS IDE I get below error. Of cours

8条回答
  •  借酒劲吻你
    2020-12-09 08:32

    It looks like you are either using directConnect or launching with a local driver provider (not having seleniumAddress or directConnect) in your configuration file. You need to run webdriver-manager update.

    Previously I had extra flags to not download standalone or gecko with webdriver-manager update --standalone false --gecko false. This is no longer the case if you are starting via a local driver provider. You will need the selenium standalone jar file.

    You could run this with a script in package.json. Something like:

    "scripts": {
      "webdriver-update": "webdriver-manager update"
    }
    

    Then execute this with: npm run webdriver-update. How do you check if the binaries are there? In your project, navigate to node_modules/protractor/node_modules/webdriver-manager/selenium/. This is where the update-config.json and your downloaded binaries are located.

提交回复
热议问题