A bit confusion with exists in karate?

試著忘記壹切 提交于 2021-01-28 08:12:06

问题


I am using exist for an element whose visibility is conditional like this

* if (locate('#elusivePopup').exists) click('#elusiveButton')

But when the element is not visible it gives an error as "cannot find locator #elusivePopup"?

version 0.9.6.RC4


回答1:


This changed in 0.9.6.RCX https://github.com/intuit/karate/issues/1148

* if (exists('#epp')) click('#eb')


来源:https://stackoverflow.com/questions/63392370/a-bit-confusion-with-exists-in-karate

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!