Skip to content

Commit

Permalink
Adds possibility to set node stereotype in standalone mode (#1967)
Browse files Browse the repository at this point in the history
Report this commit: 9b05019

Co-authored-by: Diego Molina <[email protected]>
  • Loading branch information
philippe-granet and diemol authored Oct 17, 2023
1 parent cf442bf commit 32ec173
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Standalone/generate_config
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,12 @@ elif [[ "${SE_NODE_BROWSER_NAME}" == "MicrosoftEdge" ]]; then
SE_NODE_BROWSER_VERSION=$(short_version $(microsoft-edge --version | awk '{print $3}'))
fi

if [[ -z "$SE_NODE_STEREOTYPE" ]]; then
SE_NODE_STEREOTYPE="{\"browserName\": \"${SE_NODE_BROWSER_NAME}\", \"browserVersion\": \"${SE_NODE_BROWSER_VERSION}\", \"platformName\": \"Linux\"}"
else
SE_NODE_STEREOTYPE="$SE_NODE_STEREOTYPE"
fi

echo "[[node.driver-configuration]]" >> "$FILENAME"
echo "display-name = \"${SE_NODE_BROWSER_NAME}\"" >> "$FILENAME"
echo "stereotype = '${SE_NODE_STEREOTYPE}'" >> "$FILENAME"
Expand Down

0 comments on commit 32ec173

Please sign in to comment.