0

New to the platform & test automation & selenium. I got introduced to Gitpod while attempting https://www.lambdatest.com/certifications/.

for starters I'm stuck trying to run the below simple code snippet in side Gitpod

package project.maven.selenium;
import org.openqa.selenium.WebDriver;
import io.github.bonigarcia.wdm.WebDriverManager;

public class WebDriverManagerDemo {

    public static void main(String[] args) throws InterruptedException {
        
        WebDriver driver = WebDriverManager.chromedriver().create();
        
        // Navigate to the demoqa website
        driver.get("https://www.lambdatest.com/selenium-playground/checkbox-demo");
        Thread.sleep(3000);
        
        driver.quit();

    }
        
}

Couldn't find a way pass the error below,

Exception in thread "main" io.github.bonigarcia.wdm.config.WebDriverManagerException: There was an error creating WebDriver object for Chrome at io.github.bonigarcia.wdm.WebDriverManager.instantiateDriver(WebDriverManager.java:1775) at io.github.bonigarcia.wdm.WebDriverManager.create(WebDriverManager.java:425) at project.maven.selenium.WebDriverManagerDemo.main(WebDriverManagerDemo.java:9) Caused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

can someone point out what I'm doing wrong please?

Researched hours but Selenium on Gitpod is not much of a topic, read the getting started guide with Gitpod too, to find a resolution to my problem but no luck before posting here.

0 Answers0