如果有人能告诉我是否可以从已打开的 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.
关于javascript - Appium 和 UiAutomator2 自动化已经打开的应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60589980/