<small id='6Rmsq'></small><noframes id='6Rmsq'>

    <bdo id='6Rmsq'></bdo><ul id='6Rmsq'></ul>
    <i id='6Rmsq'><tr id='6Rmsq'><dt id='6Rmsq'><q id='6Rmsq'><span id='6Rmsq'><b id='6Rmsq'><form id='6Rmsq'><ins id='6Rmsq'></ins><ul id='6Rmsq'></ul><sub id='6Rmsq'></sub></form><legend id='6Rmsq'></legend><bdo id='6Rmsq'><pre id='6Rmsq'><center id='6Rmsq'></center></pre></bdo></b><th id='6Rmsq'></th></span></q></dt></tr></i><div id='6Rmsq'><tfoot id='6Rmsq'></tfoot><dl id='6Rmsq'><fieldset id='6Rmsq'></fieldset></dl></div>

    1. <tfoot id='6Rmsq'></tfoot>

      1. <legend id='6Rmsq'><style id='6Rmsq'><dir id='6Rmsq'><q id='6Rmsq'></q></dir></style></legend>
      2. 量角器给出“无法启动 WebDriver 会话";错误

        时间:2023-06-15

      3. <i id='77wcq'><tr id='77wcq'><dt id='77wcq'><q id='77wcq'><span id='77wcq'><b id='77wcq'><form id='77wcq'><ins id='77wcq'></ins><ul id='77wcq'></ul><sub id='77wcq'></sub></form><legend id='77wcq'></legend><bdo id='77wcq'><pre id='77wcq'><center id='77wcq'></center></pre></bdo></b><th id='77wcq'></th></span></q></dt></tr></i><div id='77wcq'><tfoot id='77wcq'></tfoot><dl id='77wcq'><fieldset id='77wcq'></fieldset></dl></div>
      4. <small id='77wcq'></small><noframes id='77wcq'>

              <tbody id='77wcq'></tbody>

            <legend id='77wcq'><style id='77wcq'><dir id='77wcq'><q id='77wcq'></q></dir></style></legend>

                <bdo id='77wcq'></bdo><ul id='77wcq'></ul>
                <tfoot id='77wcq'></tfoot>

                1. 本文介绍了量角器给出“无法启动 WebDriver 会话";错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我已经使用 webdriver-manager start 启动了一个服务器,但是当我尝试运行量角器时出现此错误:

                  I already have started a server with webdriver-manager start, but I get this error when I try to run protractor:

                  Using the selenium server at http://127.0.0.1:4444/wd/hub
                  [launcher] Running 1 instances of WebDriver
                  ERROR - Unable to start a WebDriver session.
                  
                  C:...
                  pm
                  ode_modulesprotractor
                  ode_modulesselenium-webdriverlibatomserror.js:113
                    var template = new Error(this.message);
                                   ^
                  UnknownError: unknown error: cannot find Chrome binary
                  

                  我的配置文件如下所示:

                  My config file looks like this:

                  exports.config = {
                      specs: [
                          'test/*.js'
                      ],
                  
                      capabilities: {
                          'browserName': 'chrome'
                      },
                      seleniumAddress: 'http://127.0.0.1:4444/wd/hub'
                  
                  };
                  

                  我还尝试指向功能对象中的二进制文件以及添加 chromeDriver 和 seleniumServerJar 键均无济于事.有什么想法吗?

                  I have also tried pointing to the binary in the capabilities object as well as adding chromeDriver and seleniumServerJar keys to no avail. Any ideas?

                  推荐答案

                  根据相关github问题,问题是 chromedriver 找不到 chrome 浏览器可执行文件 - 在不同的操作系统上它会在 不同的地方.

                  According to the relevant github issue, the problem is that chromedriver cannot find chrome browser executeable - on different operating systems it searches for it in different places.

                  您需要在 chromedriver 期望的地方安装 chrome,或者指定 chrome 中可执行的路径>二进制设置:

                  You need to either have chrome installed where chromedriver expects it to be, or specify the path to the chrome executeable in the binary setting:

                  capabilities: {
                      "browserName": "chrome",
                      "chromeOptions": {
                          binary: "D:/Program Files/Chrome/chrome.exe",
                          args: [],
                          extensions: [],
                      }
                  },
                  

                  这篇关于量角器给出“无法启动 WebDriver 会话";错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:控制 browser.wait() 的轮询频率(流利等待) 下一篇:量角器运行后出现 uncaughtException

                  相关文章

                  <i id='sYORG'><tr id='sYORG'><dt id='sYORG'><q id='sYORG'><span id='sYORG'><b id='sYORG'><form id='sYORG'><ins id='sYORG'></ins><ul id='sYORG'></ul><sub id='sYORG'></sub></form><legend id='sYORG'></legend><bdo id='sYORG'><pre id='sYORG'><center id='sYORG'></center></pre></bdo></b><th id='sYORG'></th></span></q></dt></tr></i><div id='sYORG'><tfoot id='sYORG'></tfoot><dl id='sYORG'><fieldset id='sYORG'></fieldset></dl></div>

                  <small id='sYORG'></small><noframes id='sYORG'>

                2. <legend id='sYORG'><style id='sYORG'><dir id='sYORG'><q id='sYORG'></q></dir></style></legend>
                    • <bdo id='sYORG'></bdo><ul id='sYORG'></ul>

                    1. <tfoot id='sYORG'></tfoot>