Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Detecting if ChromeDevTools are open #1506

Closed
agzam opened this issue Jul 30, 2017 · 2 comments
Closed

Detecting if ChromeDevTools are open #1506

agzam opened this issue Jul 30, 2017 · 2 comments

Comments

@agzam
Copy link

agzam commented Jul 30, 2017

I need to detect if Chrome DevTools panel is open or not from Hammerspoon module. Can someone suggest a way? Thanks!

@asmagill
Copy link
Member

If you developer panel is in a separate window, then the window finder ability should be able to detect it with something like hs.window("Developer Tools"). It it's a panel in the main window, I'm not aware of a way using the core modules of Hammerspoon.

It might be possible with a third party module hs._asm.axuielement, but this is still very raw and you'd need to do a lot of experimentation to come up with an efficient search path, if it's even possible -- it depends upon how accessibility compliant chrome and it's developer panel are.

@cmsj
Copy link
Member

cmsj commented Aug 21, 2017

Sadly Chrome doesn't seem to indicate the state of the DevTools panel in the menus, otherwise that would be a good way to check. I don't think there is going to be any way around this other than @asmagill 's suggestions. Sorry!

@cmsj cmsj closed this as completed Aug 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants