Skip to content

Instantly share code, notes, and snippets.

@aont
Last active July 4, 2024 07:29
Show Gist options
  • Save aont/878d44025951b080263f104ec5363943 to your computer and use it in GitHub Desktop.
Save aont/878d44025951b080263f104ec5363943 to your computer and use it in GitHub Desktop.

appium memo

setup an environment for using real android devices.

set ANDROID_HOME=C:\Softwares\cmdline-tools
set JAVA_HOME=C:\Softwares\jdk-22.0.1
set PATH=C:\Softwares\cmdline-tools\platform-tools;%PATH%
C:\Softwares\cmdline-tools\bin\sdkmanager.bat --list --sdk_root=C:\Softwares\cmdline-tools
C:\Softwares\cmdline-tools\bin\sdkmanager.bat platform-tools --sdk_root=C:\Softwares\cmdline-tools
.\node_modules\.bin\appium driver install uiautomator2
$ENV:JAVA_HOME="C:\Softwares\jdk-22.0.1"
$ENV:ANDROID_HOME="C:\Softwares\cmdline-tools"
.\node_modules\.bin\appium --address 127.0.0.1 --allow-insecure=adb_shell 

appium capability

{
  "appium:automationName": "UiAutomator2",
  "appium:platformName": "Android"
}

Though appium-doctor says android, emulator, apkanalyzer.bat could NOT be found in ..., appium runs correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment