Skip to content

Instantly share code, notes, and snippets.

# 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
# @Author Jobinhood
BV_GREEN_TICK='\e[0;32m [✔] \e[0m';
BV_RED_CROSS='\e[0;91m [✗] \e[0m';
BV_YELLOW_DOT='\e[0;33m [.] \e[0m';
BV_YELLOW_DOTS='\e[0;33m ... \e[0m';
# Helper to run sudo commands for us by asking
# sudo password if needed
sudo_needed() {
# Start Selenium server
start_selenium
# stop Selenium server
stop_selenium
# Status for Selenium server
status_selenium
status_selenium -v
@Sydney-o9
Sydney-o9 / machine.js
Created August 28, 2020 05:58
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions