From 145c74845a82e9b0266fe758c5297ab1963e4b28 Mon Sep 17 00:00:00 2001 From: Philippe GRANET Date: Fri, 6 Oct 2023 19:57:08 +0200 Subject: [PATCH] Adds possibility to set node stereotype in standalone mode Report this commit: https://github.com/SeleniumHQ/docker-selenium/commit/9b050198dc8664ce9b8842f9466e02a923e14831 --- 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"