By default the --enable-automation switch is activated resulting in the top notification infobar showing "Chrome is being controlled by automated software".
This is not always desired (I'm displaying some graphics in full screen using the switch --start-fullscreen and the text is overlaying my graphics), but to disable it we cannot use a switch... we need to remove the default switch.
Please refer to this here: https://stackoverflow.com/questions/572 ... bar-within
SOLVED: CHROMEDRIVER_OPTIONS exclude switches
Moderators: JRL, Dorian (MJT support)
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
SOLVED: CHROMEDRIVER_OPTIONS exclude switches
Last edited by Grovkillen on Tue Mar 30, 2021 12:20 pm, edited 1 time in total.
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: CHROMEDRIVER_OPTIONS exclude switches
Reading further down in the conversation I linked to I found the possibility to add:
--app=http://localhost:8000/#tab=produktion
--app= is the switch and you just point it to your "web app" and it will create an instance with no search bar (url bar) and no other stuff. It actually worked out better than expected.
--app=http://localhost:8000/#tab=produktion
--app= is the switch and you just point it to your "web app" and it will create an instance with no search bar (url bar) and no other stuff. It actually worked out better than expected.
- Dorian (MJT support)
- Automation Wizard
- Posts: 1415
- Joined: Sun Nov 03, 2002 3:19 am
Re: SOLVED: CHROMEDRIVER_OPTIONS exclude switches
That's quite a discovery you made there!
I'd tried Let>CHROMEDRIVER_OPTIONS=disable-infobars hoping in vain that would remove it.
I'd read about it in vasious places, but it doesn't seem to be in this quite exhaustive list : https://peter.sh/experiments/chromium-c ... -switches/
I'd tried Let>CHROMEDRIVER_OPTIONS=disable-infobars hoping in vain that would remove it.
I'd read about it in vasious places, but it doesn't seem to be in this quite exhaustive list : https://peter.sh/experiments/chromium-c ... -switches/
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: SOLVED: CHROMEDRIVER_OPTIONS exclude switches
And a really nice feature is that it will replace the Chrome icon with whatever favicon you have for the web app/web site. So I'm planning on building a POC to have a "drag-and-drop" window based on this. And I reckon I might turn to this web app feature of the ChromeDriver.exe instead of the dialog builder inside MS.