Chrome window opens and disappears

Technical support and scripting issues

Moderators: Dorian (MJT support), JRL

Post Reply
fightcancer
Macro Veteran
Posts: 239
Joined: Fri Apr 15, 2005 8:32 am

Chrome window opens and disappears

Post by fightcancer » Thu Apr 22, 2021 4:11 pm

Code:
Let>CHROMEDRIVER_EXE=%SCRIPT_DIR%\chromedriver.exe
Let>CHROMEDRIVER_OPTIONS=--start-maximized
ChromeStart>session_id

A Chrome window opens and immediately disappears. What's the solution to getting the window to stay visible please? Thanks!

This script successfully opens MS Edge and it does not disappear.

Let>EDGEDRIVER_EXE=%SCRIPT_DIR%\msedgedriver.exe
EdgeStart>session_id

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

Re: Chrome window opens and disappears

Post by Dorian (MJT support) » Thu Apr 22, 2021 4:50 pm

I've just answered an identical question over at tech support. I had this problem too quite a long time ago, and it was because I was using the incorrect Chromedriver and it was still resident in memory.

If this is a new issue then it's possible Chrome has updated itself to a new version.

These are the steps you need :
https://help.mjtnet.com/article/344-chr ... nary-names
Yes, we have a Custom Scripting Service. Message me or go here

fightcancer
Macro Veteran
Posts: 239
Joined: Fri Apr 15, 2005 8:32 am

Re: Chrome window opens and disappears

Post by fightcancer » Thu Apr 22, 2021 4:57 pm

Thanks so much, Dorian, for the timely, accurate solution!!

I was using version 89.x of Chrome and v. 90.x of ChromeDriver. Fixed and working now!

Thanks again!!

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