lib/calabash-cucumber/operations.rb in testautoi-0.9.142 vs lib/calabash-cucumber/operations.rb in testautoi-0.9.143

- old
+ new

@@ -54,12 +54,14 @@ def label(uiquery) query(uiquery, :accessibilityLabel) end + def identifier(uiquery) + query(uiquery, :accessibilityIdentifier) + end - def simple_touch(label, *args) touch("view marked:'#{label}'", *args) end def tap(label, *args) @@ -69,9 +71,13 @@ def html(q) query(q).map { |e| e['html'] } end def set_text(uiquery, txt) + unless ENV['CALABASH_NO_DEPRECATION'] == '1' + puts 'set_text is deprecated, please use keyboard_enter_text' + puts 'https://github.com/calabash/calabash-ios/wiki/03.5-Calabash-iOS-Ruby-API' + end text_fields_modified = map(uiquery, :setText, txt) screenshot_and_raise "could not find text field #{uiquery}" if text_fields_modified.empty? text_fields_modified end