Command to check if chrome session exists

Ideas for new features & functions

Moderators: Dorian (MJT support), JRL

Post Reply
robsmith
Newbie
Posts: 17
Joined: Mon Oct 30, 2023 2:12 pm
Location: USA

Command to check if chrome session exists

Post by robsmith » Thu Apr 25, 2024 10:11 pm

I am looking for a better way to shutdown and clean up chromedriver based sessions.

When I use ChromeQuit and reference a Chrome Session ID that does not exist, it crashes the compiled macro scheduler process.

On infrequent but persistent occasions, I find that chromedriver will not launch a new session until I logoff and sometimes not until I reboot.

I suspect that if I were to gracefully end chromedriver sessions instead of using

Code: Select all

KillProcess>chrome.exe
KillProcess>chromedriver.exe
That I would not encounter the situation where chromedriver fails to launch.

If there were commands like these, I could check whether I need to shutdown a session or not.

IfChromeSessionExists>session_id

ChromeSessionState>

ChromeSessionStatus>

ChromeSessionInfo>

For now, I am avoiding ChromeQuit in my scripts, because of the hard crash and popup windows that appear if I call it in an error handling routine.

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

Re: Command to check if chrome session exists

Post by Dorian (MJT support) » Mon Apr 29, 2024 9:20 am

Noted, thank you.
Yes, we have a Custom Scripting Service. Message me or go here

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