A
A
An_2442020-09-08 01:37:14
Java
An_244, 2020-09-08 01:37:14

How to resolve "Expected 1 arguments but found 2" error in idea?

How to resolve "Expected 1 arguments but found 2" error?

The code:

import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class MainClass {
    public static void main(String[] args) {

System.setProperties("webdriver.gecko.driver","/Users/Mac/IdeaProjects/test-selenium2/drivers/geckodriver.exe");
        WebDriver driver = new FirefoxDriver();
        driver.get("https://www.selenium.dev/");
    }

}

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question