0 votes
1 view
in Devops and Agile by (23.1k points)

I'm having the following issue: When I'm running my automation tests, I keep getting the following alert "Disable Developer Mode Extension" in Chrome.

enter image description here

Is there a way to remove/disable this?. It is a blocker for me as it is making me fail some tests.

Thanks in advance

1 Answer

0 votes
by (58.7k points)

Create an object of ChromeOptions class

ChromeOptions options = new ChromeOptions();

 Add a parameter which will disable the extension

options.addArguments("--disable-extensions");

 Start the chrome session

WebDriver driver = new ChromeDriver(options);

Hope this helps!

Welcome to Intellipaat Community. Get your technical queries answered by top developers !


Categories

...