Driver Contruktor

    0

    14

    Making the constructor for Selenium Chrome Webdriver

    Shortcut: driverConstructor

    WebDriver driver;
    
    //Set headless
    //ChromeOptions options;
    //options = new ChromeOptions();
    
    //options.setHeadless(true);
    //river = new ChromeDriver(options);
    
    
    WebDriverManager.chromedriver().setup();
    driver = new ChromeDriver();
    driver.get("");
    driver.manage().window().maximize();
    
    
    
    
    Thread.sleep(3000);
    
    driver.close();
    
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Playground
    • Snippets
    • Cookbooks
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.