Hi Celina, to define capabilities for RemoteWebdriver, you need to create an instance of ChromeOptions, then we can use 'setCapability()' method for setting ChromeDriver-specific capabilities and pass ChromeOptions object into the RemoteWebDriver constructor. Following code snippet defines the ChromeDriver-specific capabilities for RemoteWebdriver using setCapability method:
ChromeOptions options = new ChromeOptions();
options.setCapability(CapabilityType.PLATFORM_NAME, Platform.WINDOWS);
options.setCapability(CapabilityType.UNEXPECTED_ALERT_BEHAVIOUR, UnexpectedAlertBehaviour.ACCEPT);
options.setCapability(CapabilityType.ACCEPT_SSL_CERTS, true);
driver = new RemoteWebDriver(new URL("http://10.x.x.x:4444/wd/hub"), options);
driver.manage().window().maximize();