空手道移动测试框架在单击选项时引发错误 [英] Karate Mobile test framework throwing error when do click option

查看:64
本文介绍了空手道移动测试框架在单击选项时引发错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

功能文件

Scenario: Validate My Contacts page
    Given driver { webDriverSession: { desiredCapabilities : "#(android.desiredConfig)"} }
    Then click("//*[@text='My Contacts']")
    ...
    ...

例外

{message=An element could not be located on the page using the given search parameters (id='%5B%5D')}

查找故障排除

  1. click()函数调用elementFind api并返回 HTTP 200
  2. 然后,它使用elementID调用 elementClick api,该API返回 HTTP 500
  3. 注意到 elementClick api没有有效的 elementID .
  1. click() function calls elementFind api and returns HTTP 200
  2. Then it calls elementClick api with the elementID, which returns HTTP 500
  3. Noticed that elementClick api doesn't have valid elementID.

技术栈

Appium Studio v21空手道1.0.0(问题存在于0.9.6中)

Appium Studio v21 Karate 1.0.0 (issue exists in 0.9.6)

请分享您的指导意见以解决问题.

Kindly share your guidance points to resolve the issue.

推荐答案

我不确定 appium studio 如何与空手道配合使用,但建议使用已安装的 appium 通过 npm .另外,请确保您拥有最新版本的Appium或至少1.9以上的版本(他们似乎开始支持w3c规范)

I am not sure how appium studio works with karate, but it is recommended to use appium installed via npm. Also, make sure you have the latest version of Appium or at least a version above 1.9 (where they seem to start supporting w3c spec)

还尝试将您的空手道版本升级到 1.1.0.RC1

Also try upgrading your karate version to 1.1.0.RC1,

如果您仍然面临问题,请关注 https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue ,并帮助我们进行复制.

If you are still facing issue, please follow https://github.com/intuit/karate/wiki/How-to-Submit-an-Issue and help us to reproduce.

这篇关于空手道移动测试框架在单击选项时引发错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆