<legend id='vKlOj'><style id='vKlOj'><dir id='vKlOj'><q id='vKlOj'></q></dir></style></legend>
    1. <tfoot id='vKlOj'></tfoot>

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

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

          <bdo id='vKlOj'></bdo><ul id='vKlOj'></ul>

      2. 量角器给出“无法启动 WebDriver 会话";错误

        时间:2023-10-12

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

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

          1. <tfoot id='ZvbU2'></tfoot>
                <tbody id='ZvbU2'></tbody>
                <bdo id='ZvbU2'></bdo><ul id='ZvbU2'></ul>
                <legend id='ZvbU2'><style id='ZvbU2'><dir id='ZvbU2'><q id='ZvbU2'></q></dir></style></legend>
                • 本文介绍了量角器给出“无法启动 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 会话";错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

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

                  相关文章

                  最新文章

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

                  <legend id='dcg5Y'><style id='dcg5Y'><dir id='dcg5Y'><q id='dcg5Y'></q></dir></style></legend>
                • <tfoot id='dcg5Y'></tfoot>
                    • <bdo id='dcg5Y'></bdo><ul id='dcg5Y'></ul>

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