Is `webdriver-manager start` necessary?

こ雲淡風輕ζ 提交于 2019-12-05 10:14:36

Protractor is sending commands to Selenium and Selenium is communicating with the browsers using its drivers.

webdriver-manager start

is starting Selenium.

There are 3 basic options:

  1. directConnect. That makes protractor communicate with the selenium drivers directly, without using the Selenium server. However, the functionality of this option is limited:

directConnect: true - Your test script communicates directly Chrome Driver or Firefox Driver, bypassing any Selenium Server. If this is true, settings for seleniumAddress and seleniumServerJar will be ignored. If you attempt to use a browser other than Chrome or Firefox an error will be thrown.

  1. Connecting to an already running selenium server (either local or remote), specified by seleniumAddress. A server can be started using the webdriver-manager start script.

  2. Starting the server from the test script.

You can explore all the options in the documentation https://github.com/angular/protractor/blob/master/docs/server-setup.md

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!