mirror of
https://github.com/jbcr/core.git
synced 2026-03-30 21:02:07 +02:00
17 lines
699 B
Bash
17 lines
699 B
Bash
#!/usr/bin/env bash
|
|
|
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
|
echo "linux";
|
|
elif [[ "$OSTYPE" == "darwin"* ]]; then
|
|
wget http://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar -P ./bin
|
|
|
|
wget https://chromedriver.storage.googleapis.com/77.0.3865.40/chromedriver_mac64.zip -P ./bin
|
|
unzip ./bin/chromedriver_mac64.zip -d ./bin
|
|
rm ./bin/chromedriver_mac64.zip
|
|
java -jar -Dwebdriver.chrome.driver="./bin/chromedriver" ./bin/selenium-server-standalone-3.141.59.jar
|
|
|
|
elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "win32" ]]; then
|
|
echo "windows";
|
|
else
|
|
echo "Don't know how to handle this platform, sorry";
|
|
fi |