How can I completely avoid webdriver-manager?

后端 未结 3 572
闹比i
闹比i 2020-12-21 23:45

I\'m trying to use protractor for e2e tests in my Angular project. I previously installed selenium server and chromedriver in my path and it works fine for non-angular proje

3条回答
  •  醉梦人生
    2020-12-22 00:14

    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

提交回复
热议问题