Skip to content

Instantly share code, notes, and snippets.

@Sydney-o9
Created February 2, 2018 00:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sydney-o9/483b5b836306e874bbda90f59c268e63 to your computer and use it in GitHub Desktop.
Save Sydney-o9/483b5b836306e874bbda90f59c268e63 to your computer and use it in GitHub Desktop.
# Start Selenium
sudo launchctl load /Library/LaunchDaemons/org.seleniumhq.selenium.plist
# Stop Selenium
sudo launchctl unload /Library/LaunchDaemons/org.seleniumhq.selenium.plist
# Is it working?
ps -ef | grep selenium | grep java | grep chromedriver | grep -v grep | grep -c selenium
# Will show 0 if selenium is not running, and 1 otherwise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment