Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions NodeChrome/generate_config
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash

CHROME_VERSION=$( sudo dpkg -s google-chrome-stable | grep Version | cut -d " " -f 2 | cut -d "-" -f 1 )

echo "
{
\"capabilities\": [
{
\"version\": \"$CHROME_VERSION\",
\"browserName\": \"chrome\",
\"maxInstances\": $NODE_MAX_INSTANCES,
\"seleniumProtocol\": \"WebDriver\"
Expand Down
3 changes: 3 additions & 0 deletions NodeFirefox/generate_config
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/bin/bash

FIREFOX_VERSION=$( firefox -version | cut -d " " -f 3 )

echo "
{
\"capabilities\": [
{
\"version\": \"$FIREFOX_VERSION\",
\"browserName\": \"firefox\",
\"maxInstances\": $NODE_MAX_INSTANCES,
\"seleniumProtocol\": \"WebDriver\"
Expand Down