testcentricity_web 2.3.6 → 2.3.6.1
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 +4 -4
- data/README.md +4 -0
- data/lib/testcentricity_web/elements/textfield.rb +16 -8
- data/lib/testcentricity_web/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33acb905d30fc0aa1b265a5ef6cbb24811605f43
|
4
|
+
data.tar.gz: f37e2b81d65b5cddcc311d4c9198221ac8d4d3d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91b1c49a03b3f4c86f73a9302cd4d68825724979a126ea6435a4bdb8b1b78208215a7890085796dd7e2cba62b37e5ceff74f005d455dcaa9b872ab554491e849
|
7
|
+
data.tar.gz: 29e0ccebde73eb94325480e2d6e08397d30d5f98b2633648e5d6f89d1ede99b18928095473d67aa0aacf2ce7bf1cea486f6d051c5fbb58664972afc22b1a923e
|
data/README.md
CHANGED
@@ -97,6 +97,10 @@ use the [parallel_tests gem](https://rubygems.org/gems/parallel_tests) to decrea
|
|
97
97
|
|
98
98
|
|
99
99
|
## What's Fixed
|
100
|
+
###Version 2.3.6.1
|
101
|
+
|
102
|
+
* `TextField.clear` method now works with most `number` type fields.
|
103
|
+
|
100
104
|
###Version 2.3.4
|
101
105
|
|
102
106
|
* Fixed bug in `PageObject.populate_data_fields` and `PageSection.populate_data_fields` methods that prevented deletion of data in number type textfields
|
@@ -81,22 +81,30 @@ module TestCentricity
|
|
81
81
|
step.to_i unless step.blank?
|
82
82
|
end
|
83
83
|
|
84
|
+
# Clear the contents of a text field
|
85
|
+
#
|
86
|
+
# @example
|
87
|
+
# first_name_field.clear
|
88
|
+
#
|
84
89
|
def clear
|
85
90
|
case get_native_attribute('tagName').downcase.to_sym
|
86
91
|
when :textarea
|
87
92
|
set('')
|
93
|
+
sleep(0.5)
|
94
|
+
send_keys(:tab)
|
88
95
|
when :div
|
89
96
|
set('')
|
90
97
|
else
|
91
|
-
|
92
|
-
|
93
|
-
|
98
|
+
length = get_value.length
|
99
|
+
length.times do
|
100
|
+
send_keys(:backspace)
|
101
|
+
end
|
102
|
+
sleep(0.5)
|
103
|
+
send_keys(:tab)
|
104
|
+
sleep(0.5)
|
105
|
+
length = get_value.length
|
106
|
+
if length > 0
|
94
107
|
set('')
|
95
|
-
else
|
96
|
-
length = get_value.length
|
97
|
-
length.times do
|
98
|
-
send_keys(:backspace)
|
99
|
-
end
|
100
108
|
sleep(0.5)
|
101
109
|
send_keys(:tab)
|
102
110
|
end
|