Hi, is it possible to launch ChromeDriver with options?
For example the 'chrome is being controlled by automated software' notification dropdown shadow is interfering with my image detections
can we add options like --disable-notifications and possibly load-extension ?
I can do the brute force way of removing the notification but even that has its weird lagging bug.
Thank you for any input
ChromeDriver --disable-notifications ?
Moderators: JRL, Dorian (MJT support)
- Grovkillen
- Automation Wizard
- Posts: 1132
- Joined: Fri Aug 10, 2012 2:38 pm
- Location: Bräcke, Sweden
- Contact:
Re: ChromeDriver --disable-notifications ?
I understand that the request is to be able to use command line switches which is available for the ChromeDriver.
More found here: https://peter.sh/experiments/chromium-c ... -switches/
More found here: 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:
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: ChromeDriver --disable-notifications ?
If you first make sure ChromeDriver is not running you can then run it yourself, either manually before starting your script or via script. If it's already running then when the script tries to start it it should just use the same process already running:
Code: Select all
KillProcess>ChromeDriver.exe
Run>C:/.../ChromeDriver.exe --disable-notifications --etc
..
ChromeNavigate>etc..
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
Re: ChromeDriver --disable-notifications ?
Ah i never tried that route. Ill have to test that.
Ive been using httprequest with a custom Json to pass all my custom data. Then Jsonparsing the result to get the sessionID then using that ID with MS15. my current tests are to connect to already running Chrome through debugger port
Ive been using httprequest with a custom Json to pass all my custom data. Then Jsonparsing the result to get the sessionID then using that ID with MS15. my current tests are to connect to already running Chrome through debugger port
- Marcus Tettmar
- Site Admin
- Posts: 7395
- Joined: Thu Sep 19, 2002 3:00 pm
- Location: Dorset, UK
- Contact:
Re: ChromeDriver --disable-notifications ?
Macro Scheduler v15.0.12 has just been made available which gives you the ability to set Chrome command line switches in the CHROMEDRIVER_OPTIONS variable, e.g.:
Let>CHROMEDRIVER_OPTIONS=--start-maximized, --disable-notifications
ChromeStart>session_id
Let>CHROMEDRIVER_OPTIONS=--start-maximized, --disable-notifications
ChromeStart>session_id
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar
Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?