Chrome options

We can make an object of ChromeOptions class

ChromeOptions ops = new ChromeOptions();

And then we can set various options like :- to disable notifications

ops.addArguments("--disable-notifications");

Then when we run chrome using selenium we will notice that under the address bar a bar will appear which will say something like this "Chrome is being controlled by automated software" To disable that bar we can do the following

options.setExperimentalOption("useAutomationExtension", false);
options.setExperimentalOption("excludeSwitches",Collections.singletonList("enable-automation"));    

Then we see with later versions of selenium 3.x chrome does not open in a maximised mode like firebox To open it as a full window covering entire screen we use this command

ops.addArguments("--start-maximized");

Then if we want to set a proxyserver to go through to reach the internet we use something like this

ops.addArguments("--proxy-server=http://83.209.94.87:8123");

page load strategy command is same as in firefox

ops.setPageLoadStrategy(PageLoadStrategy.EAGER);

Certificate errors are not thrown in chrome so don’t worry abt them.