I am using eclipse 09-2019 with jdk13 and selenium 3.0.1 .jar file.
My Code is:
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");
      }
}
Error:
java.lang.module.InvalidModuleDescriptorException: Provider class org.apache.bsf.BSFManager not in module
 
                        
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 can be raised in either of the following scenarios:
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.
Solution
The strategic solution will be to install the latest version of JDK 8u222 and execute the @Tests
Additionally, you also need to replace uppercap W with the lowercap w in the
System.setProperty()line. So, effectively, you need to replace:With
Additional Consideration
Additionally, ensure that: