-
Notifications
You must be signed in to change notification settings - Fork 370
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 autocapitalize on simulator by telling Calabash to launch the app with arguments.
You can set either the language or locale or both.
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