Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit ee8c924

Browse files
authored
Update android/entrypoint.sh (#685)
Updated android image entrypoint to use Appium 2 - style capabilities
1 parent 7f4f77c commit ee8c924

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

selenium/android/entrypoint.sh

+3-3
Original file line numberDiff line numberDiff line change
@@ -70,17 +70,17 @@ fi
7070
while [ "$(adb shell getprop sys.boot_completed | tr -d '\r')" != "1" ] && [ -z "$STOP" ] ; do sleep 1; done
7171
if [ -n "$STOP" ]; then exit 0; fi
7272

73-
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'
73+
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'
7474

7575
if [ -n "@CHROME_MOBILE@" ]; then
7676
while ip addr | grep inet | grep -q tentative > /dev/null; do sleep 0.1; done
77-
DEFAULT_CAPABILITIES=$DEFAULT_CAPABILITIES', "chromedriverPort": '$CHROMEDRIVER_PORT
77+
DEFAULT_CAPABILITIES=$DEFAULT_CAPABILITIES', "appium:chromedriverPort": '$CHROMEDRIVER_PORT
7878
/usr/bin/devtools --android &
7979
DEVTOOLS_PID=$!
8080
fi
8181

8282
if [ -x "/usr/bin/chromedriver" ]; then
83-
DEFAULT_CAPABILITIES=$DEFAULT_CAPABILITIES',"chromedriverExecutable": "/usr/bin/chromedriver"'
83+
DEFAULT_CAPABILITIES=$DEFAULT_CAPABILITIES',"appium:chromedriverExecutable": "/usr/bin/chromedriver"'
8484
fi
8585

8686
/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}" &

0 commit comments

Comments
 (0)