title: Cannot resolve method addArguments(java.lang.String) - Selenium with Chrome
body: <p>I'm new to Selenium and in my code I'm trying to use my default profile from chrome with the browser that the selenium opens (without the cookies.)<br>
  Here is my code:  </p>
  
  <pre><code>import org.openqa.selenium.By;
  import org.openqa.selenium.WebDriver;
  import org.openqa.selenium.WebElement;
  import org.openqa.selenium.chrome.ChromeDriver;
  import org.openqa.selenium.chrome.ChromeOptions;
  
  
  public class tryf {
      public static void main(String[] args) {
          System.setProperty("webdriver.chrome.driver", "C:\\Users\\******\\Downloads\\chromedriver_win32\\chromedriver.exe");
          ChromeOptions options = new ChromeOptions();
          options.addArguments("user-data-dir=C:\\Users\\******\\AppData\\Local\\Google\\Chrome\\User Data");
  
          WebDriver driver = new ChromeDriver(options);
  
          driver.get("https://www.google.com");
  
          driver.manage().window().maximize();
  
          //WebElement okStart;
  
          //okStart = driver.findElement(By.id("close-instructions"));
  
          //okStart.click();
      }
  }
  </code></pre>
  
  <p>My problam is that the code won't compile, with that eror</p>
  
  <pre><code>Error:(15, 16) java: no suitable method found for addArguments(java.lang.String)
      method org.openqa.selenium.chrome.ChromeOptions.addArguments(java.lang.String...) is not applicable
        (argument mismatch; java.lang.String cannot be converted to java.lang.String[])
      method org.openqa.selenium.chrome.ChromeOptions.addArguments(java.util.List) is not applicable
        (argument mismatch; java.lang.String cannot be converted to java.util.List)
  </code></pre>
  
  <p>Hope for help, Thanks :)</p>