lib/icuke/cucumber.rb in iCuke-0.4.10 vs lib/icuke/cucumber.rb in iCuke-0.4.11
- old
+ new
@@ -99,9 +99,13 @@
tap('Select All')
tap('Delete')
end
end
+ # Without this sleep fields which have auto-capitilisation/correction can
+ # miss the first keystroke for some reason.
+ sleep(0.5)
+
text.split('').each do |c|
begin
tap(c == ' ' ? 'space' : c, :pause => false)
rescue Exception => e
try_keyboards =