SOLVED: CHROMEDRIVER_OPTIONS exclude switches

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

SOLVED: CHROMEDRIVER_OPTIONS exclude switches

Post by Grovkillen » Tue Mar 30, 2021 12:12 pm

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
Last edited by Grovkillen on Tue Mar 30, 2021 12:20 pm, edited 1 time in total.
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: CHROMEDRIVER_OPTIONS exclude switches

Post by Grovkillen » Tue Mar 30, 2021 12:20 pm

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.
Let>ME=%Script%

Running: 15.0.24
version history

User avatar
Dorian (MJT support)
Automation Wizard
Posts: 1347
Joined: Sun Nov 03, 2002 3:19 am
Contact:

Re: SOLVED: CHROMEDRIVER_OPTIONS exclude switches

Post by Dorian (MJT support) » Tue Mar 30, 2021 2:58 pm

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/
Yes, we have a Custom Scripting Service. Message me or go here

User avatar
Grovkillen
Automation Wizard
Posts: 998
Joined: Fri Aug 10, 2012 2:38 pm
Location: Bräcke, Sweden
Contact:

Re: SOLVED: CHROMEDRIVER_OPTIONS exclude switches

Post by Grovkillen » Tue Mar 30, 2021 5:06 pm

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.
Let>ME=%Script%

Running: 15.0.24
version history

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts