Skip to content

Commit ef0ea51

Browse files
authored
Merge pull request #355 from mirkotschaeni/add-version-to-capabilities
add “version” property to capabilities object in generate_config
2 parents 4f02996 + 5f839bd commit ef0ea51

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

NodeChrome/generate_config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/bin/bash
22

3+
CHROME_VERSION=$( sudo dpkg -s google-chrome-stable | grep Version | cut -d " " -f 2 | cut -d "-" -f 1 )
4+
35
echo "
46
{
57
\"capabilities\": [
68
{
9+
\"version\": \"$CHROME_VERSION\",
710
\"browserName\": \"chrome\",
811
\"maxInstances\": $NODE_MAX_INSTANCES,
912
\"seleniumProtocol\": \"WebDriver\"

NodeFirefox/generate_config

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
#!/bin/bash
22

3+
FIREFOX_VERSION=$( firefox -version | cut -d " " -f 3 )
4+
35
echo "
46
{
57
\"capabilities\": [
68
{
9+
\"version\": \"$FIREFOX_VERSION\",
710
\"browserName\": \"firefox\",
811
\"maxInstances\": $NODE_MAX_INSTANCES,
912
\"seleniumProtocol\": \"WebDriver\"

0 commit comments

Comments
 (0)