javascript - Appium 和 UiAutomator2 自动化已经打开的应用程序

标签 javascript appium webdriver-io appium-android android-uiautomator

如果有人能告诉我是否可以从已打开的 Android 应用程序中使用 UiAutomator2 驱动程序运行测试,我将不胜感激。如果是,请您告诉我如何做到这一点,我应该使用哪些功能/选项。

信息:我正在使用 javascript + webdriverio 来编写我的测试。

提前致谢, 沃尔克

最佳答案

The way to start a session using the UiAutomator2 driver is to include the automationName capability in your new session request, with the value UiAutomator2. Of course, you must also include appropriate platformName (=Android), platformVersion, deviceName, and app capabilities, at a minimum.

Check here

关于javascript - Appium 和 UiAutomator2 自动化已经打开的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60589980/

相关文章:

javascript - 页面 anchor 链接的 jQuery this.hash 行为

google-chrome - 获取错误元素不可交互: element has zero size only in chrome browser

javascript - 使用 chai 与 mocha 和 webdriverio 时出现断言错误

ios - 当我们尝试使用 Appium 脚本导航到 iPhone safari 浏览器中的框架时,获取异常阻止了具有原点的框架

java - Appium IOS native 应用程序按标签查找元素

selenium - 无法连接到 selenium 服务器来执行 webdriverIO 测试

javascript - Strong Node vs Node Js - 强 Node 的优势是什么?

javascript - 在 d3 map 上显示文本和直接通过超链接

javascript - 从外部调用 jQuery 内部定义的函数

ios - 在哪里可以获取适用于我的 iOS 项目的 Appium 兼容 iOS 应用程序文件?