首页 > 解决方案 > 空手道 + Appium,命令 driver.startRecordingScreen() 不起作用

问题描述

使用空手道向 Appium 服务器发送 startRecordingScreen() 命令时出现问题。

我尝试使用 curl 发送命令并且它可以工作,但在空手道场景中它失败了。Appium 服务器控制台上没有任何日志

Feature: Simple test with appium

Background:
    * url 'http://127.0.0.1:4723'
    * configure driver = {type : 'android'}
    * def driverCaps = {"app":".../.app","newCommandTimeout":180, "platformVersion": "6.0", "platformName": "Android","deviceName":"Android Emulator", "avd":"avd_name"}

Scenario: Simple scenario

Given driver driverCaps
And driver.startRecordingScreen()
And driver.click('..')

看起来有些 Appium 命令没有在空手道中实现?

标签: karate

解决方案


是的,Appium 肯定是实验性的,除非您或其他任何人可以做出贡献,否则这将需要时间。我们现在正专注于让 web-UI 自动化生产就绪。它发展得很好,所以在我(有偏见的)看来 - 值得花时间扩展到移动 + 桌面自动化。


推荐阅读