user198989
user198989

Reputation: 4663

Disable chrome yellow infobar?

enter image description here

I'm trying to remove the yellow infobar. Tried this, adding that parametet to shortcut with no luck:

C:\Users[USERNAME]\AppData\Local\Google\Chrome\Application\chrome.exe –disable-web-security

What is the correct way to hide this yellow infobar ? Thanks

Upvotes: 4

Views: 24835

Answers (4)

RollingHog
RollingHog

Reputation: 121

You can use --app=desired_address_without_brackets. Works in Chrome 80.

Semi-official Chrome(ium?) doc for command line options

it will launch chrome in App mode and hide such infobars (alongside the adress bar and maybe tabs). Not always applicable, but --disable-infobars removed in Chrome 76 anyway.

Upvotes: 2

Prashant Vyas
Prashant Vyas

Reputation: 31

While automation testing if you want to disable this yellow bar you can add this code:

var chromeOption = new ChromeOptions();    
chromeOption.AddArguments("disable-infobars");

driver = new ChromeDriver(chromeOption);

Upvotes: 3

user6682581
user6682581

Reputation: 1

the one hes talking about is the yellow infobar that tells you they wont update chrome. Its the only info bar that pops up that ive ever come across an is a nusance.select the target box put

C:\Program Files (x86)\Google\Chrome\Application\chrome.exe" --disable-infobars

Upvotes: 0

Rob W
Rob W

Reputation: 349262

Add the --disable-infobars flag to your command to prevent the yellow infobar from appearing.

That infobar exists for a reason though: It is to warn that a dangerous feature is being used. I recommend against hiding the infobar, because sooner or later you will accidentally visit your bank's website and another malicious website in the same unprotected browsing session.

Upvotes: 12

Related Questions