Chrome: Call Javascript function from (system) command line? -


i need call javascript function website running in google chrome / chromium command line.

is there possibility access on developer tools outside via command line? there extension use execute code?

the convenient way have access chrome developer console command line.

edit:

to make more clear: let’s website i’m on has function defined:

function hello() {   alert("hello"); } 

i call function, don’t have access developer tools in chrome. can access mac os x terminal (via ssh). it’s setup in gallery without keyboard. kind of pipe may needed.

after more research found crconsole, can used execute code in google chrome.

chrome has started this:
open -a "google chrome" --args --remote-debugging-port=9222


Comments

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -