I am automating my application using Selenium Webdriver, C#, Visual Studio and Chrome browser.
I am getting below popup when selenium tried to open the chrome browse
According to ChromeDriver Issues use the following:
chromeOptions: {
args: ['--start-maximized', '--disable-extensions'],
useAutomationExtension: false
}
Extra: For using Selenium with Cucumber-js
require('chromedriver')
var seleniumWebdriver = require('selenium-webdriver');
var {defineSupportCode} = require('cucumber');
function CustomWorld() {
var chromeCapabilities = seleniumWebdriver.Capabilities.chrome();
var chromeOptions = {
'args': ['--disable-extensions', '--start-maximized'],
'useAutomationExtension': false
};
chromeCapabilities.set('chromeOptions', chromeOptions);
this.driver = new seleniumWebdriver.Builder()
.forBrowser('chrome')
.withCapabilities(chromeCapabilities)
.build();
}
defineSupportCode(function({setWorldConstructor}) {
setWorldConstructor(CustomWorld)
})