From 32ec17317e4909b79188ef69552391ec4a97e39b Mon Sep 17 00:00:00 2001 From: Philippe GRANET Date: Tue, 17 Oct 2023 12:18:25 +0200 Subject: [PATCH] Adds possibility to set node stereotype in standalone mode (#1967) Report this commit: https://github.com/SeleniumHQ/docker-selenium/commit/9b050198dc8664ce9b8842f9466e02a923e14831 Co-authored-by: Diego Molina --- Standalone/generate_config | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Standalone/generate_config b/Standalone/generate_config index 05f613adb..7809d5256 100755 --- a/Standalone/generate_config +++ b/Standalone/generate_config @@ -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"