Skip to content

Deprecated

Joshua Moody edited this page May 26, 2014 · 9 revisions

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

Functions, methods, and cucumber steps will now generate warning messages.

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
Clone this wiki locally