问题
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