How can I completely avoid webdriver-manager?

橙三吉。 提交于 2019-11-29 16:31:59

Download latest selenium standalone server and chromedriver from https://www.seleniumhq.org/download/

Create a batch file

java -Dselenium.LOGGER.level=WARNING -Dwebdriver.chrome.driver="C:/Program Files (x86)/Selenium/WebDrivers/ChromeDrivers/2.38/chromedriver.exe" -jar selenium-server-standalone-3.4.0.jar -port 4444

specify the port,Chromedriver location and log level.

Just run the batch file and now you have selenium server running.

In your config file mention Selenium address 127.0.0.1:4444 or localhost

I think best way is either go for selenium grid(Dockerized Selenium or Jar based grid . Other option is

directConnect: true 

in your protractor config file.

you can use ng cli option: webdriver-update to make it not to execute webdriver update as following:

ng e2e --webdriver-update=false

But ng e2e uses the webdriver in local package not global package, I think you need a npm script to copy your pre-prepared webdriver to project local package before execute ng e2e --webdriver-update=false

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