<tfoot id='W2Ql5'></tfoot>

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

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

        • <bdo id='W2Ql5'></bdo><ul id='W2Ql5'></ul>

        NoSuchMethodError: com.google.common.base.Preconditions.check

        时间:2023-09-28

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

      2. <legend id='aIWir'><style id='aIWir'><dir id='aIWir'><q id='aIWir'></q></dir></style></legend>

        • <tfoot id='aIWir'></tfoot>
            • <bdo id='aIWir'></bdo><ul id='aIWir'></ul>

            • <small id='aIWir'></small><noframes id='aIWir'>

                  <tbody id='aIWir'></tbody>
                  本文介绍了NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  得到以下错误:

                  java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
                  

                  运行时

                  System.setProperty("webdriver.chrome.driver", "/ocs/browserDrivers/chromedriver.exe");
                  //ChromeOptions chromeOptions = new ChromeOptions();
                  //chromeOptions.addArguments("start-maximized");
                  driver = new ChromeDriver();
                  

                  升级到 selenium 3.14 和 chromedriver 2.42.不是 maven 项目

                  Upgraded to selenium 3.14 and chromedriver 2.42.Not a maven project

                  推荐答案

                  这个错误信息...

                  java.lang.NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V
                  

                  ...暗示执行该行时出现错误:

                  ...implies that there was an error raised while executing the line:

                  System.setProperty("webdriver.chrome.driver", "/ocs/browserDrivers/chromedriver.exe");
                  

                  您的主要问题是 WebDriver 二进制类型与底层操作系统之间的不兼容性.

                  Your main issue is the incompatibility between the WebDriver binary type and the underlying Operating System.

                  您需要从 WebDriver 二进制文件" rel="nofollow noreferrer">chromedriver.storage 为您的程序如下:

                  You need download, extract and use the right format of the WebDriver binary from chromedriver.storage for your program as follows:

                  • Linux 操作系统:

                  • Linux OS:

                  chromedriver_linux64.tar.gz 2018-09-13 19:30:37 3.85MB
                  

                • MAC 操作系统:

                • MAC OS:

                  chromedriver_mac64.tar.gz   2018-09-13 18:14:11 5.75MB
                  

                • Windows 操作系统:

                • Windows OS:

                  chromedriver_win32.zip  2018-09-13 21:11:33 3.42MB
                  

                • 如果您使用的是 MAC OS,那么 System.setProperty() 行将是:

                  If you are using MAC OS so the System.setProperty() line would be:

                  System.setProperty("webdriver.chrome.driver", "/ocs/browserDrivers/chromedriver"); //drop the extension (.exe) part
                  

                  如果您使用的是 Windows 操作系统,那么 System.setProperty() 行将是:

                  If you are using Windows OS so the System.setProperty() line would be:

                  System.setProperty("webdriver.chrome.driver", "C:\path\to\chromedriver.exe"); //mention the absolute path
                  

                  这篇关于NoSuchMethodError: com.google.common.base.Preconditions.checkState(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)V的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Selenium:无法使用 aShot 库获取完整的页面截图 下一篇:org.openqa.selenium.SessionNotCreatedException:从 Jenkins CI

                  相关文章

                  最新文章

                  <tfoot id='h86ey'></tfoot>
                  1. <small id='h86ey'></small><noframes id='h86ey'>

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

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