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

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

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

      <legend id='S2I8S'><style id='S2I8S'><dir id='S2I8S'><q id='S2I8S'></q></dir></style></legend>

        “java.lang.module.InvalidModuleDescriptorException:提供程序

        时间:2023-09-28

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

                    <tbody id='irFss'></tbody>

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

                • <i id='irFss'><tr id='irFss'><dt id='irFss'><q id='irFss'><span id='irFss'><b id='irFss'><form id='irFss'><ins id='irFss'></ins><ul id='irFss'></ul><sub id='irFss'></sub></form><legend id='irFss'></legend><bdo id='irFss'><pre id='irFss'><center id='irFss'></center></pre></bdo></b><th id='irFss'></th></span></q></dt></tr></i><div id='irFss'><tfoot id='irFss'></tfoot><dl id='irFss'><fieldset id='irFss'></fieldset></dl></div>
                  本文介绍了“java.lang.module.InvalidModuleDescriptorException:提供程序类 org.apache.bsf.BSFManager 不在模块中"ChromeDriver Selenium 出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我正在使用带有 jdk13 和 selenium 3.0.1 .jar 文件的 eclipse 09-2019.

                  I am using eclipse 09-2019 with jdk13 and selenium 3.0.1 .jar file.

                  我的代码是:

                  package package1;
                  import org.openqa.selenium.WebDriver;
                  import org.openqa.selenium.chrome.ChromeDriver;
                  import org.openqa.selenium.firefox.FirefoxDriver;
                  
                  public class Script1
                  {
                        public static void main(String[] args)
                        {
                            System.out.println("Hii");
                            System.setProperty("Webdriver.chrome.driver","E:\Selenium\chromedriver.exe");
                            WebDriver driver=new ChromeDriver();
                            driver.get("http://www.google.com");
                        }
                  }
                  

                  错误:

                  java.lang.module.InvalidModuleDescriptorException: Provider class org.apache.bsf.BSFManager not in module
                  

                  推荐答案

                  InvalidModuleDescriptorException

                  InvalidModuleDescriptorException 被抛出读取模块描述符时发现模块描述符格式错误或无法解释为模块描述符.

                  InvalidModuleDescriptorException

                  InvalidModuleDescriptorException is thrown when reading a module descriptor and the module descriptor is found to be malformed or otherwise cannot be interpreted as a module descriptor.

                  InvalidModuleDescriptorException 可以在以下任一情况下引发:

                  InvalidModuleDescriptorException can be raised in either of the following scenarios:

                  1. Java 项目的问题.
                  2. Java 项目中的 Java 包存在问题.
                  3. Java 包中的 Java 类存在问题.

                  但是,根据 Does Selenium v​​3.141 支持 Java 13? 似乎是 Selenium 仍然不支持 java-13.

                  However, as per the discussion in Does Selenium v3.141 support Java 13? it seems the latest version of Selenium still doesn't supports java-13.

                  战略解决方案是安装最新版本的 JDK 8u222 并执行 @Tests

                  The strategic solution will be to install the latest version of JDK 8u222 and execute the @Tests

                  此外,您还需要在 System.setProperty() 行中将大写字母 W 替换为小写字母 w.因此,实际上,您需要替换:

                  Additionally, you also need to replace uppercap W with the lowercap w in the System.setProperty() line. So, effectively, you need to replace:

                  System.setProperty("Webdriver.chrome.driver","E:\Selenium\chromedriver.exe");
                  

                  System.setProperty("webdriver.chrome.driver","E:\Selenium\chromedriver.exe");
                  

                  <小时>

                  其他注意事项

                  此外,请确保:

                  • Selenium 已升级到当前级别版本 3.141.59.
                  • ChromeDriver 已更新为当前 ChromeDriver v79.0.3945.36 级别.
                  • Chrome 已更新至当前 Chrome 版本 79.0 级别.(根据 ChromeDriver v79.0 发行说明)
                  • Selenium is upgraded to current levels Version 3.141.59.
                  • ChromeDriver is updated to current ChromeDriver v79.0.3945.36 level.
                  • Chrome is updated to current Chrome Version 79.0 level. (as per ChromeDriver v79.0 release notes)

                  这篇关于“java.lang.module.InvalidModuleDescriptorException:提供程序类 org.apache.bsf.BSFManager 不在模块中"ChromeDriver Selenium 出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:Selenium WebDriver/Java - 模拟人类光标移动 下一篇:WebDriverException:断开连接:即使提供最新 chromedriv

                  相关文章

                  最新文章

                  1. <small id='giTpq'></small><noframes id='giTpq'>

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