lib/calabash-cucumber/console_helpers.rb in calabash-cucumber-0.20.0 vs lib/calabash-cucumber/console_helpers.rb in calabash-cucumber-0.20.3
- old
+ new
@@ -100,11 +100,13 @@
"This console session was created just for you.",
"Den som jager to harer, får ingen.",
"Uti, non abuti.",
"Non Satis Scire",
"Nullius in verba",
- "Det ka æn jå væer ei jált"
+ "Det ka æn jå væer ei jált",
+ "Dzień dobry",
+ "Jestem tu by ocalić świat"
]
puts RunLoop::Color.green("Calabash says, \"#{messages.shuffle.first}\"")
end
# Turn on debug logging.
@@ -144,9 +146,22 @@
puts RunLoop::Color.cyan(" verbose => Turn debug logging on.")
puts RunLoop::Color.cyan(" quiet => Turn debug logging off.")
puts RunLoop::Color.cyan(" copy => Copy console commands to clipboard.")
puts RunLoop::Color.cyan(" clear => Clear the console.")
puts ""
+ end
+
+ # @!visibility private
+ # Do not call this method directly.
+ def _try_to_attach
+ begin
+ Calabash::Cucumber::HTTP.ping_app
+ launcher = Calabash::Cucumber::Launcher.new
+ launcher.attach
+ puts(RunLoop::Color.green("Attached to: #{launcher}"))
+ launcher
+ rescue => _
+ end
end
private
# List the visible element with given mark(s).