DesiredCapabilities in Selenium 3.0 showing error on chrome
<pre><code>package com.sb.testpackage1;

import org.openqa.selenium.Platform;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.remote.DesiredCapabilities;

public class DesiredCapabilitiesDemo {

    public static void main(String[] args) {

        String baseURL = "http://www.google.com";
        WebDriver driver;

        System.setProperty("webdriver.gecko.driver", "C:\\Users\\m12345\\Downloads\\geckodriver-v0.11.1-win64\\geckodriver.exe");       
        DesiredCapabilities caps = DesiredCapabilities.chrome();
        caps.setBrowserName("chrome");
        caps.setPlatform(Platform.WINDOWS);
        driver = new ChromeDriver(caps);

        driver.manage().window().maximize();
        driver.get(baseURL);


    }

}
</code></pre>

<p>I am using Selenium 3.0 and the above code is showing the following error</p>

<p><a href="https://i.stack.imgur.com/mJmEj.jpg" rel="nofollow"><img src="https://i.stack.imgur.com/mJmEj.jpg" alt="enter image description here"></a></p>

<p>Can any one please point me to resolve this or provide any workarounds. Thanks</p>