From ee8c9246e7249d8d216638c00d415e75851029fd Mon Sep 17 00:00:00 2001 From: Vadim Date: Fri, 14 Jun 2024 15:58:34 +0700 Subject: [PATCH] Update android/entrypoint.sh (#685) Updated android image entrypoint to use Appium 2 - style capabilities --- selenium/android/entrypoint.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/selenium/android/entrypoint.sh b/selenium/android/entrypoint.sh index 3081d6110..6a132a66e 100755 --- a/selenium/android/entrypoint.sh +++ b/selenium/android/entrypoint.sh @@ -70,17 +70,17 @@ fi while [ "$(adb shell getprop sys.boot_completed | tr -d '\r')" != "1" ] && [ -z "$STOP" ] ; do sleep 1; done if [ -n "$STOP" ]; then exit 0; fi -DEFAULT_CAPABILITIES='"appium:androidNaturalOrientation": true, "appium:deviceName": "android", "platformName": "Android", "appium:automationName": "UiAutomator2", "appium:noReset": true, "appium:udid": "'$EMULATOR'", "appium:systemPort": '$BOOTSTRAP_PORT', "appium:newCommandTimeout": 90' +DEFAULT_CAPABILITIES='"appium:androidNaturalOrientation": true, "appium:deviceName": "Android Emulator", "platformName": "Android", "appium:automationName": "UiAutomator2", "appium:noReset": true, "appium:udid": "'$EMULATOR'", "appium:systemPort": '$BOOTSTRAP_PORT', "appium:newCommandTimeout": 90' if [ -n "@CHROME_MOBILE@" ]; then while ip addr | grep inet | grep -q tentative > /dev/null; do sleep 0.1; done - DEFAULT_CAPABILITIES=$DEFAULT_CAPABILITIES', "chromedriverPort": '$CHROMEDRIVER_PORT + DEFAULT_CAPABILITIES=$DEFAULT_CAPABILITIES', "appium:chromedriverPort": '$CHROMEDRIVER_PORT /usr/bin/devtools --android & DEVTOOLS_PID=$! fi if [ -x "/usr/bin/chromedriver" ]; then - DEFAULT_CAPABILITIES=$DEFAULT_CAPABILITIES',"chromedriverExecutable": "/usr/bin/chromedriver"' + DEFAULT_CAPABILITIES=$DEFAULT_CAPABILITIES',"appium:chromedriverExecutable": "/usr/bin/chromedriver"' fi /opt/node_modules/.bin/appium -a 0.0.0.0 -p "$PORT" --log-timestamp --log-no-colors ${APPIUM_ARGS} --base-path "/wd/hub" --default-capabilities "{$DEFAULT_CAPABILITIES}" &