Commit a7c42f9b authored by adrian33cc's avatar adrian33cc
Browse files

elimanndo archivos i

nnecesarios
parent a7eeabf6
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File deleted
File deleted
#!/bin/sh
# install java 11
apt-get install default-jre=2:1.11-71 -y
# install google chrome
apt-get install libxss1 libappindicator1 libindicator7 -y
wget https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_84.0.4147.89-1_amd64.deb
apt-get install google-chrome-stable_84.0.4147.89-1_amd64.deb
rm google-chrome-stable_84.0.4147.89-1_amd64.deb
# install chrome driver
apt-get install unzip -y
wget https://chromedriver.storage.googleapis.com/84.0.4147.30/chromedriver_linux64.zip
unzip chromedriver_linux64.zip
rm chromedriver_linux64.zip
# download selenium
wget https://selenium-release.storage.googleapis.com/3.141/selenium-server-standalone-3.141.59.jar -O selenium-server.jar
File deleted
File deleted
#! /usr/bin/bash
if [[ $1 == "--help" ]]; then
echo "Add a (chrome driver) node to the (selenium) grid"
echo "\n\r"
echo "usage: "
echo " $ sh start_grid.sh [chromedriver] [selenium grid url]"
echo "\r\n"
echo "defaults on env variables:"
echo " \$CHROMEDRIVERPATH (./chromedriver-linux64)"
echo " \$SELENIUMSERVER (http://localhost:4444/register"
echo "\n\r"
echo "if you install the node project use this chromedriver ../node_modules/chromedriver/bin/chromedriver"
exit 1
fi
# defaults
export CHROMEDRIVERPATH="${CHROMEDRIVERPATH:-./chromedriver-linux64}"
chromedriver=${1:-$CHROMEDRIVERPATH}
export SELENIUMSERVER="${SELENIUMSERVER:-http://localhost:4444/register}"
grid_server="${2:-$SELENIUMSERVER}"
java -Dwebdriver.chrome.driver=$chromedriver -jar selenium-server-standalone-3.141.59.jar -role webdriver -hub $grid_server -port 5566 -log log.txt
#! /usr/bin/sh
java -jar selenium-server-standalone-3.141.59.jar -role hub
\ No newline at end of file
File moved
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment