In the below code, the browser got opened but the URL is not typed by the script. Can anyone please suggest me the corrections needed for this script?
package SeleniumDemo;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
public class S {
public static void main(String[] args) throws Exception {
System.setProperty("webdriver.chrome.driver", "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe");
WebDriver DRIVER = new ChromeDriver();
String URL = "http://www.facebook.com";
DRIVER.manage().window().maximize();
DRIVER.get(URL);
System.out.println(DRIVER.getTitle());
DRIVER.close();
}
}