Reputation: 63
I have been using the Karate framework for a while now and more recently its Robot component for desktop UI automation. I'm curious if there's a way to fetch the value of a given element property. Following this example from the documentation:
* def fun = function(){ return optional('Close').enabled }
* waitUntil(fun)
I'd like to be able to fetch the value of IsOffscreen, IsControlElement, etc.
Any suggestions will be appreciated.
Upvotes: 1
Views: 744
Reputation: 58088
That's a good question, so I've just added a way to do it, but unfortunately can't test it just yet: https://github.com/intuit/karate/tree/develop/karate-robot#property-value
* def button = locate('Close')
* def isOffScreen = button.property('IsOffscreen')
Would you be able to build this locally and test, that would really help. There is am easy developer guide; https://github.com/intuit/karate/wiki/Developer-Guide
Upvotes: 1