testcentricity_web 2.3.6 → 2.3.6.1

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: 934dfc4adfe16b1b302a2375870ac684f13f6f76
4
- data.tar.gz: df0266d6fa84142268f6744bc598cc4c527fab94
3
+ metadata.gz: 33acb905d30fc0aa1b265a5ef6cbb24811605f43
4
+ data.tar.gz: f37e2b81d65b5cddcc311d4c9198221ac8d4d3d3
5
5
  SHA512:
6
- metadata.gz: 219a017f0eae3b575c8b9aa4dba7e9c3619b7c52c632e9cd43843e300ed5a84b12403d81188d17bee16ca3c4472df5f560903ce8a22403a4fa9686d9e925121d
7
- data.tar.gz: 724a4aa919c0178870ab491beb021adfe629c2e9f61f967616ac7b48dbac3288e3e267d5aecc2c1e4587f6f9826a258a2fb630fdf61d3d787a09f715c0bccf0b
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
- field_type = get_native_attribute('type')
92
- field_type = field_type.downcase.to_sym unless field_type.nil?
93
- if field_type == :number
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
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '2.3.6'
2
+ VERSION = '2.3.6.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.6
4
+ version: 2.3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski