-
Notifications
You must be signed in to change notification settings - Fork 369
Enabling autocorrection caps lock and autocapitalization on simulator
Serghei Moret edited this page Oct 10, 2018
·
3 revisions
You can enable autocorrection caps-lock and autocapitalization on simulator by telling Calabash to launch the app with arguments.
module Calabash::Launcher
@@launcher = nil
def self.launcher
@@launcher ||= Calabash::Cucumber::Launcher.new
end
def self.launcher=(launcher)
@@launcher = launcher
end
end
Before do |scenario|
launcher = Calabash::Launcher.launcher
options = {
# Enabling autocorrection caps-lock and autocapitalization
:autocorrection_enabled => true,
:capslock_enabled => true,
:autocapitalization_enabled => true
}
launcher.relaunch(options)
end