'Getting (java.lang.illegalstateexception the driver is not executable) while running selenium + java + maven on gitlab ci/cd
When i try to launch chromedriver in gitlab ci getting java.lang.illegalstateexception the driver is not executable.
Downloaded the artifacts and verified in local machine it is working fine, please guide me how can i resolve this
System.setProperty(Constant.getDriverType(), Constant.PATH_CHROMEDRIVER_FILE);
ChromeOptions options = new ChromeOptions();
options.addArguments("--headless");
options.addArguments("--disable-gpu");
options.addArguments("--window-size=" + Constant.getWindowSize());
webDriver = new ChromeDriver(options);
webDriver.manage().window().maximize();
webDriver.get(Constant.getAppUrl());
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|