Using ChromeDriver Options

There are a number of different ChromeDriver options (and for the other browsers too) that allow us to control how the browser starts up. In this example we see how Chrome is started when no options are selected:
ChromeDriver

Using the following options we can specify that Chrome start without the warning message and that it starts maximised.

 var chromeOptions = new ChromeOptions();
 chromeOptions.AddArguments("--test-type","--start-maximized");
 driver = new ChromeDriver(chromeOptions);

Leave a Comment