-
Notifications
You must be signed in to change notification settings - Fork 369
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
- usequery("view all")
- see Query Syntax - since 0.9.145
set_text
- usekeyboard_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 - useDEVICE_TARGET
instead - since 0.9.163
await_keyboard
- usewait_for_keyboard
- since 0.9.163
keyboard_enter_char
second argshould_screenshot
has been replaced by an options hash. Use the:should_screenshot
key instead - since 0.9.163
send_uia_command
- useuia("...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?
andDevice::iphone_5?
- useiphone_4in?
- since 0.9.168
SDK_VERSION
environment variable has been deprecated - useDEVICE_TARGET
- since 0.9.169
Calabash::Cucumber::FRAMEWORK_VERSION
- no replacement - now returns nil - since 0.9.169
Calabash::Cucumber::Device.framework_version
- useserver_version
instead - since 0.9.169
Calabash::Cucumber::SimulatorHelper
module - useCalabash::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 withtap_mark
- since 0.10.0 in
Calabash::Cucumber::Launcher
reset_app_jail
has been replaced withreset_app_sandbox
. This method has been deprecated, but does not issue a warning. - since 0.10.0
done
- replaced withtap_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.