title: new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()
body: <p>I am new at Java Test Automation. I receive below message when I run my test.
  What is wrong it? Thanks by now.</p>
  <blockquote>
  <p>Message: org.openqa.selenium.remote.DesiredCapabilities chrome</p>
  <p>INFO: Using <code>new ChromeOptions()</code> is preferred to <code>DesiredCapabilities.chrome()</code>
  Starting ChromeDriver 2.44.609538 (b655c5a60b0b544917107a59d4153d4bf78e1b90) on port 33954 Only local connections are allowed.</p>
  </blockquote>
  <pre><code>Java File
  import org.junit.Test;
  import org.openqa.selenium.chrome.ChromeDriver;
  import org.openqa.selenium.chrome.ChromeOptions;
  
  public class TestCase {
      @Test
      public void doTestCase(){
          System.setProperty(&quot;webdriver.chrome.driver&quot;,&quot;D:\\Drivers\\Chrome Driver\\chromedriver\\chromedriver.exe&quot;);
          ChromeOptions options = new ChromeOptions();
          options.addArguments(&quot;start-maximized&quot;);
          ChromeDriver driver = new ChromeDriver(options);
          driver.get(&quot;https://www.google.com/&quot;);
      }
  }
  
  Maven File
  &lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot;
           xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
           xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
      &lt;groupId&gt;com.alkan.testautomation&lt;/groupId&gt;
      &lt;artifactId&gt;JavaTestAutomaiton&lt;/artifactId&gt;
      &lt;version&gt;1.0-SNAPSHOT&lt;/version&gt;
  &lt;dependencies&gt;
      &lt;!-- https://mvnrepository.com/artifact/junit/junit --&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;junit&lt;/groupId&gt;
          &lt;artifactId&gt;junit&lt;/artifactId&gt;
          &lt;version&gt;4.12&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
          &lt;artifactId&gt;selenium-java&lt;/artifactId&gt;
          &lt;version&gt;3.141.59&lt;/version&gt;
      &lt;/dependency&gt;
      &lt;dependency&gt;
          &lt;groupId&gt;org.seleniumhq.selenium&lt;/groupId&gt;
          &lt;artifactId&gt;selenium-chrome-driver&lt;/artifactId&gt;
          &lt;version&gt;2.44.0&lt;/version&gt;
      &lt;/dependency&gt;
  &lt;/dependencies&gt;
  &lt;/project&gt;
  </code></pre>