Skip to content

Instantly share code, notes, and snippets.

@clemherreman
Created June 6, 2012 10:49
Show Gist options
  • Save clemherreman/2881256 to your computer and use it in GitHub Desktop.
Save clemherreman/2881256 to your computer and use it in GitHub Desktop.
Aliases form launching/killink Selenium daemon
#!/bin/sh
ps -ef|grep selenium|grep -v grep|awk '{print $2}'|xargs kill -9
#!/bin/sh
java -jar /Users/clemherreman/.selenium/selenium-server-standalone-2.24.1.jar -Dwebdriver.chrome.driver=/Users/clemherreman/.selenium/chromedriver > /dev/null &
sleep 5
@clemherreman
Copy link
Author

Exemple:
I added some aliases in my .bash_rc (I put the selenium .jar in ~/.selenium)

#Selenium
alias selenium_kill="~/.selenium/kill_selenium.sh"
alias selenium_run='~/.selenium/start_selenium.sh /path/to/selenium.jar'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment