Disabling infobar on chrome | Selenium Forum
A
Abhishek Posted on 29/05/2020

Dear sir,

I was on module 12, and noticed that "disable-infobars" as argument is not disabling the info bar.

I read in an article that this one is depricated.

So i used:

cr.setExperimentalOption("excludeSwitches", new String[]{"enable-automation"}); from some blog.

and to my surprise that worked. The issue is that now i am getting a pop on chrome saying ""DISABLE DEVELOPER MODE EXTENSON".

i tried commands like:

cr.addArguments("--disable-notifications");
cr.addArguments("chrome.switches","--disable-extensions");

 

but nothing is working.

 

Kindly help.

 


A
Abhishek Replied on 29/05/2020

cr is reference variable for chrome options in my code.

I am using the latest chrome browser version - Version 83.0.4103.61 (Official Build) (64-bit)

and chromedriver vresion  is latest one.


A
Ashish Thakur Replied on 29/05/2020

this will not work

Chrome guys dont let you remove it now


A
Abhishek Replied on 29/05/2020

Thank you .


Related Posts