testcentricity_web 2.3.3 → 2.3.4

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: ab2e8b211cc796a9822b39fa528a631c6e5c44a0
4
- data.tar.gz: 1022d194646a166296f4ef3f6734d64e298e3210
3
+ metadata.gz: c724649eae19599a56c00729d55705b9ceb62e7a
4
+ data.tar.gz: cdf9dbe67ff3aded964ca995d89ab90c4b72e783
5
5
  SHA512:
6
- metadata.gz: 146c025ccf47140c086c94ffb105ebf2db15aea5137f0f69857c448acfce24740df9bfbd624dff0539d4ad5944a5d13bfe74cc49d5359d315a5740b89b79eb96
7
- data.tar.gz: f27897292ee4533bbe633c95ac4a84e45a6cd0d239a153b07be46e144368e7ef733b3160c3c73044c814290bdbdbd0e0fc6257543cb3422572f0a57adcbc7f56
6
+ metadata.gz: ce435189eedb17d12c9388fa7fbf922f1a35211a40362f3f36d53dc3436bd9b2540f63c1aa0ad2b2b1522bd7829f587c0a64c68b533ce1e1b7d48b0adf10eae6
7
+ data.tar.gz: 13c3c461cfc2a4bb1a5b6ddc8bca7a3685e51b1ea5cdf939c0848fff7a8c6d5d130504c9950bd28ced8865a3e3a16e794f54b341decd9c4fc58426c372f38a6a
data/README.md CHANGED
@@ -87,6 +87,11 @@ use the [parallel_tests gem](https://rubygems.org/gems/parallel_tests) to decrea
87
87
 
88
88
 
89
89
  ## What's Fixed
90
+ ###Version 2.3.4
91
+
92
+ * Fixed bug in `PageObject.populate_data_fields` and `PageSection.populate_data_fields` methods that prevented deletion of data in number type textfields
93
+ and textarea controls.
94
+
90
95
  ###Version 2.3.3
91
96
 
92
97
  * Corrected device profiles for iPad (iOS 10) with Mobile Chrome browser and iPad (iOS 10) with Mobile Firefox browser.
@@ -627,12 +627,20 @@ module TestCentricity
627
627
  # make sure the intended UI target element exists before trying to set its value
628
628
  data_field.wait_until_exists(2)
629
629
  if data_param == '!DELETE'
630
- length = data_field.get_value.length
631
- length.times do
632
- data_field.send_keys(:backspace)
630
+ if data_field.get_native_attribute('tagName').downcase.to_sym == :textarea
631
+ data_field.set('')
632
+ else
633
+ if data_field.get_native_attribute('type').downcase.to_sym == :number
634
+ data_field.set('')
635
+ else
636
+ length = data_field.get_value.length
637
+ length.times do
638
+ data_field.send_keys(:backspace)
639
+ end
640
+ sleep(0.5)
641
+ data_field.send_keys(:tab)
642
+ end
633
643
  end
634
- sleep(0.5)
635
- data_field.send_keys(:tab)
636
644
  else
637
645
  case data_field.get_object_type
638
646
  when :checkbox
@@ -771,12 +771,20 @@ module TestCentricity
771
771
  # make sure the intended UI target element exists before trying to set its value
772
772
  data_field.wait_until_exists(2)
773
773
  if data_param == '!DELETE'
774
- length = data_field.get_value.length
775
- length.times do
776
- data_field.send_keys(:backspace)
774
+ if data_field.get_native_attribute('tagName').downcase.to_sym == :textarea
775
+ data_field.set('')
776
+ else
777
+ if data_field.get_native_attribute('type').downcase.to_sym == :number
778
+ data_field.set('')
779
+ else
780
+ length = data_field.get_value.length
781
+ length.times do
782
+ data_field.send_keys(:backspace)
783
+ end
784
+ sleep(0.5)
785
+ data_field.send_keys(:tab)
786
+ end
777
787
  end
778
- sleep(0.5)
779
- data_field.send_keys(:tab)
780
788
  else
781
789
  case data_field.get_object_type
782
790
  when :checkbox
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '2.3.3'
2
+ VERSION = '2.3.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testcentricity_web
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.3
4
+ version: 2.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - A.J. Mrozinski
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-09 00:00:00.000000000 Z
11
+ date: 2017-12-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -274,10 +274,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
274
  requirements:
275
275
  - Capybara, Selenium-WebDriver
276
276
  rubyforge_project:
277
- rubygems_version: 2.6.5
277
+ rubygems_version: 2.5.1
278
278
  signing_key:
279
279
  specification_version: 4
280
280
  summary: A Page Object and Data Object Model Framework for desktop and mobile web
281
281
  testing
282
282
  test_files: []
283
- has_rdoc: