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:

Using the following options we can specify that Chrome start without the warning message and that it starts maximised.
var chromeOptions = new ChromeOptions();
driver = new ChromeDriver(chromeOptions);

Leave a Reply

Your email address will not be published. Required fields are marked *