lib/calabash-cucumber/tests_helpers.rb in calabash-cucumber-0.9.107 vs lib/calabash-cucumber/tests_helpers.rb in calabash-cucumber-0.9.108
- old
+ new
@@ -13,9 +13,17 @@
#)
end
+ def query_map(uiquery,prop, *args)
+ query(uiquery,*args).map {|o| o[prop.to_s]}
+ end
+
+ def classes(uiquery,*args)
+ query_map(uiquery,:class,*args)
+ end
+
def element_does_not_exist(uiquery)
query(uiquery).empty?
end
def element_exists(uiquery)