From 6759714106645c9ef39aa0ce0f662cf8988ffef7 Mon Sep 17 00:00:00 2001 From: budtmo Date: Mon, 6 Feb 2023 11:02:14 +0100 Subject: [PATCH] Support Appium 2.0 --- Appium/Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Appium/Dockerfile b/Appium/Dockerfile index df6f0dc..8091d20 100644 --- a/Appium/Dockerfile +++ b/Appium/Dockerfile @@ -109,7 +109,7 @@ ENV PATH=$PATH:$ANDROID_HOME/platform-tools:$ANDROID_HOME/build-tools # Using this workaround to install Appium -> https://github.com/appium/appium/issues/10020 -> Please remove this workaround asap #==================================== ENV NODE_VERSION=18 -ENV APPIUM_VERSION=1.22.3 +ENV APPIUM_VERSION=2.0.0-beta.53 RUN curl -sL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash && \ apt-get -qqy install nodejs && \ npm install -g appium@${APPIUM_VERSION} && \ @@ -143,6 +143,14 @@ ENV APP_PATH=/home/androidusr/${SCRIPT_PATH} #================== USER 1300:1301 +#=============================== +# Install basic Android drivers +#=============================== +ENV APPIUM_DRIVER_ESPRESSO_VERSION="2.15.1" +ENV APPIUM_DRIVER_UIAUTOMATOR2_VERSION="2.12.2" +RUN appium driver install espresso@${APPIUM_DRIVER_ESPRESSO_VERSION} && \ + appium driver install uiautomator2@${APPIUM_DRIVER_UIAUTOMATOR2_VERSION} + #=============== # Expose Port #---------------