This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @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() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Start Selenium server | |
start_selenium | |
# stop Selenium server | |
stop_selenium | |
# Status for Selenium server | |
status_selenium | |
status_selenium -v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Available variables: | |
// - Machine | |
// - interpret | |
// - assign | |
// - send | |
// - sendParent | |
// - spawn | |
// - raise | |
// - actions |
OlderNewer