Skip to content

Commit

Permalink
add “version” property to capabilities object in generate_config in N…
Browse files Browse the repository at this point in the history
…odeFirefox and NodeChrome
  • Loading branch information
mirkotschaeni committed Dec 22, 2016
1 parent 4f02996 commit 5f839bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
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

0 comments on commit 5f839bd

Please sign in to comment.