calabash-cucumber 0.9.164 → 0.9.165

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1d63cff70ca26297c8cb735435593c637a2b4c57
4
- data.tar.gz: 597b5ac124ff4d2e04586a254002c9478777d41a
3
+ metadata.gz: daa55ccad664e8307c21be261ba35f3b46396f15
4
+ data.tar.gz: c1f1b88c855ab49f2d4abdd694371464e0be1207
5
5
  SHA512:
6
- metadata.gz: 98f00c78a07ff96f43c41fd7f5f1f257a2c1cb647cad90375ae24ea9b19bdd031dd325357ad8cc2f5c8ba2cc25b0faa2d16b45610485cb577048de7b88789576
7
- data.tar.gz: 705c512fa654fd2bbbdef3788a3de8a8060a99505d35e88665519b5b7b916fcc63c64b72d80a9724c92e670f09d9265cd37c4ef0a1f00759a83f788d4d37fee8
6
+ metadata.gz: 89923b8b31a848d0ef78fe908ed4d5aaa160ab1d06c6408cfb2b35ea7480994cfaf489e4881e1f6119cab06638f9894cfcc0a28f9e02749c063a3dde69ed8ebe
7
+ data.tar.gz: 05b5fac88d8cc252a8a3e422f82fa447d7a42454ecd0ca8c49e97440e98a2acc26132902b55f30c795e0d3daf61a7fbd2aa8b35877a9f818a07f34d504f0ac28
@@ -26,7 +26,7 @@ Gem::Specification.new do |s|
26
26
  s.add_dependency( "geocoder", "~>1.1.8")
27
27
  s.add_dependency( "httpclient","~> 2.3.3")
28
28
  s.add_dependency( "bundler", "~> 1.1")
29
- s.add_dependency( "run_loop", "~> 0.1.0" )
29
+ s.add_dependency( "run_loop", "~> 0.1.1" )
30
30
  s.add_dependency( "awesome_print")
31
31
  s.add_dependency( "xamarin-test-cloud", "~> 0.9.27")
32
32
 
@@ -274,7 +274,8 @@ module Calabash
274
274
  def keyboard_enter_text(text)
275
275
  _ensure_can_enter_text
276
276
  if uia_available?
277
- uia_type_string(text)
277
+ text_before = query("textField isFirstResponder:1",:text).first
278
+ uia_type_string(text, text_before)
278
279
  else
279
280
  text.each_char do |ch|
280
281
  begin
@@ -118,8 +118,8 @@ module Calabash
118
118
  uia_handle_command(:screenshot, name)
119
119
  end
120
120
 
121
- def uia_type_string(string)
122
- res = uia_handle_command(:typeString, string)
121
+ def uia_type_string(string, opt_text_before="")
122
+ res = uia_handle_command(:typeString, string, opt_text_before)
123
123
  status = res['status']
124
124
  if status.eql?('error')
125
125
  value = res['value']
@@ -177,7 +177,7 @@ module Calabash
177
177
 
178
178
  "#{m}(#{serialized_args})"
179
179
  else
180
- raise "Invalid invocation spec #{invocation}"
180
+ raise "Invalid invocation spec #{invocation}"
181
181
  end
182
182
  end
183
183
  command = "#{js_cmd}.#{js_args.join('.')}"
@@ -265,4 +265,4 @@ module Calabash
265
265
 
266
266
  end
267
267
  end
268
- end
268
+ end
@@ -1,6 +1,6 @@
1
1
  module Calabash
2
2
  module Cucumber
3
- VERSION = '0.9.164'
3
+ VERSION = '0.9.165'
4
4
  FRAMEWORK_VERSION = '0.9.164'
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calabash-cucumber
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.164
4
+ version: 0.9.165
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-09 00:00:00.000000000 Z
11
+ date: 2014-01-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber
@@ -156,14 +156,14 @@ dependencies:
156
156
  requirements:
157
157
  - - ~>
158
158
  - !ruby/object:Gem::Version
159
- version: 0.1.0
159
+ version: 0.1.1
160
160
  type: :runtime
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
164
  - - ~>
165
165
  - !ruby/object:Gem::Version
166
- version: 0.1.0
166
+ version: 0.1.1
167
167
  - !ruby/object:Gem::Dependency
168
168
  name: awesome_print
169
169
  requirement: !ruby/object:Gem::Requirement