calabash-android 0.5.3 → 0.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c3d8e6214b08d32c898b1cfd1f4aabc42da33b3e
|
|
4
|
+
data.tar.gz: 652e2f29b456f303aed53cb9ffe2293f2db8b7c8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e21458b4936d211a6664e8aeb0b5672bf20d9617ab82eeb1125f173b0fb9db454d9d85b2ca53ee4f6ce779b9ed66c68b6e3b4a5f793931a85c1ae4ac99f6299e
|
|
7
|
+
data.tar.gz: e5ffb174325a1f9b68829653f2fef8da71849914ae34c16bc211f7d8628a35747bd528580b2760d60660c275f1ee14403c3844a60f43d375703c520e55833fc2
|
data/CHANGES.txt
CHANGED
|
Binary file
|
|
@@ -15,13 +15,13 @@ Then /^I enter text "([^\"]*)" into field with id "([^\"]*)"$/ do |text, id|
|
|
|
15
15
|
end
|
|
16
16
|
|
|
17
17
|
Then /^I clear "([^\"]*)"$/ do |identifier|
|
|
18
|
-
|
|
18
|
+
clear_text_in("android.widget.EditText marked:'#{identifier}'}")
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
Then /^I clear input field number (\d+)$/ do |index|
|
|
22
|
-
|
|
22
|
+
clear_text_in("android.widget.EditText index:#{index.to_i-1}")
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
Then /^I clear input field with id "([^\"]*)"$/ do |id|
|
|
26
|
-
|
|
26
|
+
clear_text_in("android.widget.EditText id:'#{id}'")
|
|
27
27
|
end
|
|
@@ -35,7 +35,15 @@ module Calabash
|
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
def clear_text(options={})
|
|
38
|
-
|
|
38
|
+
if options.is_a?(String)
|
|
39
|
+
puts "Warning: The method clear_text now clears the text in the currently focused view. Use clear_text_in instead"
|
|
40
|
+
puts "Notice that clear_text_in only clears the text of the first element matching the given query, not all."
|
|
41
|
+
puts "Use query(query, setText: '') to replicate the old behaviour"
|
|
42
|
+
|
|
43
|
+
clear_text_in(options)
|
|
44
|
+
else
|
|
45
|
+
perform_action('clear_text')
|
|
46
|
+
end
|
|
39
47
|
end
|
|
40
48
|
|
|
41
49
|
def escape_quotes(str)
|