UIAutomatorViewer在mac上的使用方式

huangapple go评论105阅读模式
英文:

UIAutomatorViewer In mac

问题

我正在尝试在我的Mac上运行UIAutomatorViewer,但命令未被识别,以下是我的定义的环境变量:

export ANDROID_HOME=/Users/jribeiro/Library/Android/sdk

export PATH=${PATH}:${ANDROID_HOME}/emulator
export PATH=${PATH}:${ANDROID_HOME}/tools
export PATH=${PATH}:${ANDROID_HOME}/tools/bin
export PATH=${PATH}:${ANDROID_HOME}/platform-tools

export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_261.jdk/Contents/Home
export PATH=${PATH}:${JAVA_HOME}/bin
export PATH=~/Library/Android/sdk/platform-tools:/usr/local/bin:/usr/bin:/bin:/$

有人可以帮助我调用UIAutomatorView吗?

英文:

I am trying to run UIAutomatorViewer on my mac, but the command is not recognized follows my defined environment variables:

export ANDROID_HOME = / Users / jribeiro / Library / Android / sdk

export PATH = $ {PATH}: $ {ANDROID_HOME} / emulator
export PATH = $ {PATH}: $ {ANDROID_HOME} / tools
export PATH = $ {PATH}: $ {ANDROID_HOME} / tools / bin
export PATH = $ {PATH}: $ {ANDROID_HOME} / platform-tools


export JAVA_HOME = / Library / Java / JavaVirtualMachines / jdk1.8.0_261.jdk / Contents / Ho $
export PATH = $ {PATH}: $ JAVA_HOME / bin
export PATH = ~ / Library / Android / sdk / platform-tools: / usr / local / bin: / usr / bin: / bin: / $

can someone help me to call the UIAutomatorView ?

答案1

得分: 2

  1. 下载 Appium Desktop 应用 > 启动服务器 > 点击应用中的搜索图标 > 打开 UI 自动化查看器。

  2. 您可以首先检查位于 Library/Android/sdk/tools/bin/ 目录下的 uiautomatorviewer.bat 文件,并通过执行 Library/Android/sdk/tools/bin/uiautomatorviewer 启动相同的工具。

英文:
  1. Download the appium desktop app > Start server > click on search icon on the app > UI automator view is opened.

  2. You can first check your uiautomatorviewer.bat at Library/Android/sdk/tools/bin/ and can start the same by executing Library/Android/sdk/tools/bin/uiautomatorviewer.

huangapple
  • 本文由 发表于 2020年8月27日 06:10:58
  • 转载请务必保留本文链接:https://go.coder-hub.com/63606424.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定