空手道移动测试框架在单击选项时引发错误 [英] Karate Mobile test framework throwing error when do click option
问题描述
我
功能文件
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')}
查找故障排除
-
click()
函数调用elementFind api并返回HTTP 200
- 然后,它使用elementID调用
elementClick
api,该API返回HTTP 500
- 注意到
elementClick
api没有有效的elementID
.
click()
function calls elementFind api and returnsHTTP 200
- Then it calls
elementClick
api with the elementID, which returnsHTTP 500
- Noticed that
elementClick
api doesn't have validelementID
.
技术栈
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屋!