2016-12-11 31 views
0

只是不能让它在我的Mac上工作。量角器:OS X:驱动程序可执行文件的路径必须由webdriver.chrome.driver系统属性设置

它一直在我的Windows机器上的精细W/T的任何配置的变化等等,但我安装了它在我的Mac和运行的想法如何得到它的工作

节点版本:3.10.7
量角器版本:版本4.0.13
器浏览器:Chrome的
操作系统和版本OS X埃尔卡皮坦
安装的驱动程序: 在/ usr/local/lib目录/ node_modules /量角器/ node_modules/webdriver的-经理/硒
和chromedriver_2.25

另外:由https://chromedriver.storage.googleapis.com/index.html?path=2.26/

  • 下载

    • 复制到:在/ usr/local/lib目录/ node_modules /量角器/ node_modules/webdriver的经理/硒 仍然没有工作 是有什么办法将其设置在conf文件或某个'?

      登录:

      $量角器conf_basic.js [18时34分22秒] I /托管 - 使用硒服务器在http://localhost:4444/wd/hub [18时34分22秒] I /发射器 - 运行1种的webdriver的情况下, [18:34:23] E/launcher - 驱动程序可执行文件的路径必须由webdriver.chrome.driver系统属性设置;有关更多信息,请参阅https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver。最新版本可从http://chromedriver.storage.googleapis.com/index.html [18:34:23]下载E/launcher - WebDriverError:驱动程序可执行文件的路径必须由webdriver.chrome.driver系统属性设置;有关更多信息,请参阅https://github.com/SeleniumHQ/selenium/wiki/ChromeDriver。可以从WebDriverError(/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:27:5)处的http://chromedriver.storage.googleapis.com/index.html (位于Object.checkLegacyResponse(/ usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/error.js:639:15) at parseHttpResponse(/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/http/index.js:538 :13) at client_.send.then.response(/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/http/index.js:472:11) at ManagedPromise.invokeCallback_(/ usr/local /lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:1379:14) at TaskQueue.execute_(/ usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise。 js:2913:14) 在TaskQueue.executeNext_(/usr/local/lib/node_modules/protractor/node_modules/selenium-webdriver/lib/promise.js:2896:21)

    EDIT

    webdriver-manager update --versions.chrome 2.26 
    

    [07:32:45] I/update - selenium standalone:file exists /usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-2.53.1.jar [07: 32:45] I/update - selenium standalone:v2.53.1最新版本 [07:32:45] I/update - chromedriver:文件存在/ usr/local/lib/node_modules /或/ node_modules/webdriver的经理/硒/ chromedriver_2.26mac64。拉链 [7点32分45秒] I /更新 - chromedriver:解压chromedriver_2.26mac64.zip [7点32分45秒] I /更新 - chromedriver:设置权限为0755的在/ usr/local/lib目录/ node_modules /量角器/ node_modules/webdriver-manager/selenium/chromedriver_2.26 [07:32:45] I/update - chromedriver:v2.26最新版本 [07:32:47] I/update - geckodriver:file exists /usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.11.1-macos.tar.gz [7点32分47秒] I /更新 - geckodriver:解压geckodriver-v0.11.1 -macos.tar.gz [7点32分47秒] I /更新 - geckodriver:设置权限,以0755为/usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.11.1 [07:32:47]我/更新Ë - geckodriver:vv0.11.1最新

    ,以给它更允许我去:在/ usr/local/lib目录/ node_modules /量角器/ node_modules/webdriver的经理/硒

    和执行CHMOD 777 chromedriver_2.26

    我做起吧:webdriver的经理开始--versions.chrome 2.26,你告诉我的。仍然没有喜悦

    [07:38:11] I/start - java -Dwebdriver.chrome.driver=/usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/chromedriver_2.26 -Dwebdriver.gecko.driver=/usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/geckodriver-v0.11.1 -jar /usr/local/lib/node_modules/protractor/node_modules/webdriver-manager/selenium/selenium-server-standalone-2.53.1.jar -port 4444 [07:38:11] I/start - seleniumProcess.pid: 509 07:38:12.779 INFO - Launching a standalone Selenium Server 07:38:12.887 INFO - Java: Oracle Corporation 25.101-b13 07:38:12.887 INFO - OS: Mac OS X 10.11.6 x86_64 07:38:12.965 INFO - v2.53.1, with Core v2.53.1. Built from revision a36b8b1 07:38:13.106 INFO - Driver provider org.openqa.selenium.ie.InternetExplorerDriver registration is skipped: registration capabilities Capabilities [{ensureCleanSession=true, browserName=internet explorer, version=, platform=WINDOWS}] does not match the current platform MAC 07:38:13.107 INFO - Driver provider org.openqa.selenium.edge.EdgeDriver registration is skipped: registration capabilities Capabilities [{browserName=MicrosoftEdge, version=, platform=WINDOWS}] does not match the current platform MAC 07:38:13.107 INFO - Driver class not found: com.opera.core.systems.OperaDriver 07:38:13.107 INFO - Driver provider com.opera.core.systems.OperaDriver is not registered 07:38:13.110 INFO - Driver class not found: org.openqa.selenium.htmlunit.HtmlUnitDriver 07:38:13.110 INFO - Driver provider org.openqa.selenium.htmlunit.HtmlUnitDriver is not registered 07:38:13.368 INFO - RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub 07:38:13.368 INFO - Selenium Server is up and running

    SOLUTION

    1. 须藤量角器cons.js OR
    2. 下载chromedriver并将其复制到USR/local/bin目录
  • 回答

    2

    我猜你正在启动webdriver-manager来启动你的硒独立服务器。你需要做的是运行webdriver-manager update --versions.chrome 2.26。然后,在启动硒独立服务器时,您将运行webdriver-manager start --versions.chrome 2.26

    +0

    它没有帮助,寿2.26下载并提取到chromedriver_2.26 – rafalf

    +0

    如果你是做手工,你改变访问权限chromedriver_2.26?另外,如果您手动执行所有这些操作,您将如何启动独立服务器? – cnishina

    +0

    我编辑了我的帖子,详细说明了如何运行它。 – rafalf

    相关问题