-
Notifications
You must be signed in to change notification settings - Fork 2
update images to use selenium version 2.53.1 and chrome webdriver 2.22 #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,10 @@ if [ ! -e /opt/selenium/config.json ]; then | |
exit 1 | ||
fi | ||
|
||
if [ -z "$HUB_PORT_4444_TCP_ADDR" ]; then | ||
echo Not linked with a running Hub container 1>&2 | ||
exit 1 | ||
fi | ||
# if [ -z "$HUB_PORT_4444_TCP_ADDR" ]; then | ||
# echo Not linked with a running Hub container 1>&2 | ||
# exit 1 | ||
# fi | ||
|
||
function shutdown { | ||
kill -s SIGTERM $NODE_PID | ||
|
@@ -32,10 +32,13 @@ fi | |
# TODO: Look into http://www.seleniumhq.org/docs/05_selenium_rc.jsp#browser-side-logs | ||
|
||
SERVERNUM=$(get_server_num) | ||
|
||
rm -f /tmp/.X*lock | ||
|
||
xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR" \ | ||
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \ | ||
-role node \ | ||
-hub http://$HUB_PORT_4444_TCP_ADDR:$HUB_PORT_4444_TCP_PORT/grid/register \ | ||
-hub http://hub:4444/grid/register \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @addteq-andrew Any reason why the variable name changed from the original for this line? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I made the changes as per SeleniumHQ#238 |
||
${REMOTE_HOST_PARAM} \ | ||
-nodeConfig /opt/selenium/config.json \ | ||
${SE_OPTS} & | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,10 +9,10 @@ if [ ! -e /opt/selenium/config.json ]; then | |
exit 1 | ||
fi | ||
|
||
if [ -z "$HUB_PORT_4444_TCP_ADDR" ]; then | ||
echo Not linked with a running Hub container 1>&2 | ||
exit 1 | ||
fi | ||
# if [ -z "$HUB_PORT_4444_TCP_ADDR" ]; then | ||
# echo Not linked with a running Hub container 1>&2 | ||
# exit 1 | ||
# fi | ||
|
||
function shutdown { | ||
kill -s SIGTERM $NODE_PID | ||
|
@@ -32,6 +32,9 @@ fi | |
# TODO: Look into http://www.seleniumhq.org/docs/05_selenium_rc.jsp#browser-side-logs | ||
|
||
SERVERNUM=$(get_server_num) | ||
|
||
rm -f /tmp/.X*lock | ||
|
||
env | cut -f 1 -d "=" | sort > asroot | ||
sudo -E -u seluser -i env | cut -f 1 -d "=" | sort > asseluser | ||
sudo -E -i -u seluser \ | ||
|
@@ -40,7 +43,7 @@ env | cut -f 1 -d "=" | sort > asroot | |
xvfb-run -n $SERVERNUM --server-args="-screen 0 $GEOMETRY -ac +extension RANDR" \ | ||
java ${JAVA_OPTS} -jar /opt/selenium/selenium-server-standalone.jar \ | ||
-role node \ | ||
-hub http://$HUB_PORT_4444_TCP_ADDR:$HUB_PORT_4444_TCP_PORT/grid/register \ | ||
-hub http://hub:4444/grid/register \ | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @addteq-andrew Same comment as above. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @addteq-himanshu I made the changes as per SeleniumHQ#238 |
||
${REMOTE_HOST_PARAM} \ | ||
-nodeConfig /opt/selenium/config.json \ | ||
${SE_OPTS} & | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@addteq-himanshu I also added this change from SeleniumHQ#230 as I experienced this behavior when restarting containers.