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
Clone this wiki locally
You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.
Press h to open a hovercard with more details.