Skip to content

Commit

Permalink
Removed chromedriver from repository
Browse files Browse the repository at this point in the history
  • Loading branch information
html committed Mar 16, 2013
1 parent 4de5f4e commit 1d5b8d0
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions selenium-server
@@ -1,6 +1,15 @@
#!/bin/bash
SELENIUM_DIR="misc"
echo $SELENIUM_DIR
if [ \! -f "$SELENIUM_DIR/selenium-server-standalone-2.26.0.jar" ]; then
(cd "$SELENIUM_DIR" && wget "http://selenium.googlecode.com/files/selenium-server-standalone-2.26.0.jar")
fi
java -jar "$SELENIUM_DIR/selenium-server-standalone-2.26.0.jar" -Dwebdriver.chrome.driver="$SELENIUM_DIR/chromedriver" -Dwebdriver.chrome.switches="--disable-web-security" #-firefoxProfileTemplate "$SELENIUM_DIR/selenium-firefox-profile"

if [ -f "$SELENIUM_DIR/chromedriver" ]; then
java -jar "$SELENIUM_DIR/selenium-server-standalone-2.26.0.jar" -Dwebdriver.chrome.driver="$SELENIUM_DIR/chromedriver" -Dwebdriver.chrome.switches="--disable-web-security"
else
echo "!!! Starting without chromedriver support,
!!! for google-chrome browser support go to http://code.google.com/p/chromedriver/,
!!! download release and put chromedriver into misc/ directory.
!!! After that restart $0"
java -jar "$SELENIUM_DIR/selenium-server-standalone-2.26.0.jar"
fi

0 comments on commit 1d5b8d0

Please sign in to comment.