1

I have written a selenium script,while creating project it is asking for create module if i don't create this module, directly create project run the script means will get this error."Error occurred during initialization of boot layer java.lang.module.FindException: Module format not recognized: E:\selenuim\chromedriver_win32\chromedriver.exe
//This is my script//

public class LoginDemo {

public static void main(String[] args) {


    System.setProperty("webdriver.chrome.driver","E:\\chromedriver.exe");
    WebDriver  driver =new ChromeDriver();
    driver.manage().window().maximize();
    driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);

     //Login to an application
    driver.get("http://aesportal.azurewebsites.net/");
    driver.findElement(By.name("email")).sendKeys("demo");
    driver.findElement(By.name("password")).sendKeys("demo");
    driver.findElement(By.xpath("//Button[@type='submit'")).click();    
    }

}

divya u
  • 67
  • 1
  • 7

0 Answers0