Skip to content

Deprecated

Joshua Moody edited this page Oct 23, 2014 · 9 revisions

These functions, methods, constants, and cucumber steps have been deprecated and their use is no longer supported.

Deprecated ENV variables are usually supported for a couple of versions for backward compatibility, but once they appear in this list, their days are numbered.

To suppress deprecated warnings set ENV['CALABASH_NO_DEPRECATION']=1. This is not recommended.

  • since 0.9.131 query_all - use query("view all") - see Query Syntax
  • since 0.9.145 set_text - use keyboard_enter_text or (sparingly) clear_text
  • since 0.9.151 When I clear "some text field" - no replacement
  • since 0.9.153 OS environmental variable has been deprecated - use DEVICE_TARGET instead
  • since 0.9.163 await_keyboard - use wait_for_keyboard
  • since 0.9.163 keyboard_enter_char second arg should_screenshot has been replaced by an options hash. Use the :should_screenshot key instead
  • since 0.9.163 send_uia_command - use uia("...javascript..", options) instead. This has not been formally deprecated (no warnings will be generated) yet, but it will be in a future version.
  • since 0.9.168 iphone_5? and Device::iphone_5? - use iphone_4in?
  • since 0.9.168 SDK_VERSION environment variable has been deprecated - use DEVICE_TARGET
  • since 0.9.169 Calabash::Cucumber::FRAMEWORK_VERSION - no replacement - now returns nil
  • since 0.9.169 Calabash::Cucumber::Device.framework_version - use server_version instead
  • since 0.9.169 Calabash::Cucumber::SimulatorHelper module - use Calabash::Cucumber::SimulatorLauncher instead. The following were not ported over to the new module:
    • get_version
    • ios_version
    • ios_major_version
    • version_check
  • since 0.10.0 Calabash::Cucumber::Device.udid - no replacement
  • since 0.10.0 tap - replaced with tap_mark
  • since 0.10.0 in Calabash::Cucumber::Launcher reset_app_jail has been replaced with reset_app_sandbox. This method has been deprecated, but does not issue a warning.
  • since 0.10.0 done - replaced with tap_keyboard_action_key. This method has been deprecated, but does not issue a warning.
  • since 0.10.0 xcode_bin_dir - not replaced.
  • since 0.11.1 Calabash::Device#screen_size - Use #screen_dimensions` instead.
Clone this wiki locally