1DesiredCapabilities cap = DesiredCapabilities.chrome();2cap.setCapability(CapabilityType.ENABLE_PROFILING_CAPABILITY, true);3cap.setCapability(CapabilityType.ENABLE_BASIC_PROFILING_CAPABILITY, true);4cap.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);5cap.setCapability(CapabilityType.TAKES_SCREENSHOT, true);6cap.setCapability(CapabilityType.SUPPORTS_FINDING_BY_CSS, true);7cap.setCapability(CapabilityType.SUPPORTS_ALERTS, true);8cap.setCapability(CapabilityType.SUPPORTS_APPLICATION_CACHE, true);9cap.setCapability(CapabilityType.SUPPORTS_JAVASCRIPT, true);10cap.setCapability(CapabilityType.SUPPORTS_LOCATION_CONTEXT, true);11cap.setCapability(CapabilityType.SUPPORTS_WEB_STORAGE, true);12cap.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, true);13cap.setCapability(CapabilityType.HAS_NATIVE_EVENTS, true);14cap.setCapability(CapabilityType.HAS_TOUCHSCREEN, true);15cap.setCapability(CapabilityType.HAS_WEBDRIVER, true);16cap.setCapability(CapabilityType.PROXY, true);17cap.setCapability(CapabilityType.LOGGING_PREFS, true);18cap.setCapability(CapabilityType.BROWSER_NAME, "chrome");19cap.setCapability(CapabilityType.VERSION, "54.0.2840.71");20cap.setCapability(CapabilityType.PLATFORM, "WINDOWS");21cap.setCapability("chrome.switches", Arrays.asList("--start-maximized"));22cap.setCapability("chrome.binary", "C:\\Users\\Selenium\\chromedriver.exe");23cap.setCapability("chrome.verbose", true);24cap.setCapability("chrome.switches", Arrays.asList("--start-maximized"));25cap.setCapability("chrome.switches", Arrays.asList("--disable-extensions"));26cap.setCapability("chrome.switches", Arrays.asList("--no-default-browser-check"));27cap.setCapability("chrome.switches", Arrays.asList("--no-first-run"));28cap.setCapability("chrome.switches", Arrays.asList("--disable-default-apps"));29cap.setCapability("chrome.switches", Arrays.asList("--disable-popup-blocking"));30cap.setCapability("chrome.switches", Arrays.asList("--disable-translate"));31cap.setCapability("chrome.switches", Arrays.asList("--disable-save-password-bubble"));32cap.setCapability("chrome.switches", Arrays.asList("--disable-password-generation"));33cap.setCapability("chrome.switches", Arrays.asList