testcentricity_web 2.3.5 → 2.3.6

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: 86e224ff9e738e678d44dade01144c45262aa186
4
- data.tar.gz: 386f421e94c973fd1b1c40d03ab0245e24fcca25
3
+ metadata.gz: 934dfc4adfe16b1b302a2375870ac684f13f6f76
4
+ data.tar.gz: df0266d6fa84142268f6744bc598cc4c527fab94
5
5
  SHA512:
6
- metadata.gz: d4de87f0ef86ecdb57aa156ec93325b723fb8ce0e006c79222652fe1c657f3d65a9ccf3c2bede5e88d84f35cd5a7d024fda45b2d2869366dd9eccbed1f7fe7be
7
- data.tar.gz: d96608301cc29dce5bf403cb101353ee5afb866a24e8103147f4bda2628afe4b2b39a1cbd5b14cec95c27e70f79fd9d80849fbe5d129125a27ebe3079b529a2b
6
+ metadata.gz: 219a017f0eae3b575c8b9aa4dba7e9c3619b7c52c632e9cd43843e300ed5a84b12403d81188d17bee16ca3c4472df5f560903ce8a22403a4fa9686d9e925121d
7
+ data.tar.gz: 724a4aa919c0178870ab491beb021adfe629c2e9f61f967616ac7b48dbac3288e3e267d5aecc2c1e4587f6f9826a258a2fb630fdf61d3d787a09f715c0bccf0b
data/README.md CHANGED
@@ -15,6 +15,7 @@ The TestCentricity™ Web gem supports running automated tests against the follo
15
15
  [Sauce Labs](https://saucelabs.com/open-source#automated-testing-platform), [CrossBrowserTesting](https://crossbrowsertesting.com/selenium-testing), or
16
16
  [TestingBot](https://testingbot.com/features) services.
17
17
  * web portals utilizing JavaScript front end application frameworks like Ember, React, Angular, and GWT
18
+ * enterprise web portals build using Siebel Open UI
18
19
 
19
20
 
20
21
  **Note:** Test execution against local instances of Firefox version 48 or greater is currently not supported by the TestCentricity™ Web gem. Testing with
@@ -26,6 +27,10 @@ hosted instances of Chrome, Firefox, Safari, and IE web browsers.
26
27
 
27
28
 
28
29
  ## What's New
30
+ ###Version 2.3.6
31
+
32
+ * Added `TextField.clear` method for deleting the contents of text fields. This method should trigger the `onchange` event for the associated text field.
33
+
29
34
  ###Version 2.3.5
30
35
 
31
36
  * Updated `PageObject.populate_data_fields` and `PageSection.populate_data_fields` methods to be compatible with Redactor editor fields.
@@ -80,5 +80,27 @@ module TestCentricity
80
80
  step = obj.native.attribute('step')
81
81
  step.to_i unless step.blank?
82
82
  end
83
+
84
+ def clear
85
+ case get_native_attribute('tagName').downcase.to_sym
86
+ when :textarea
87
+ set('')
88
+ when :div
89
+ set('')
90
+ 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
94
+ set('')
95
+ else
96
+ length = get_value.length
97
+ length.times do
98
+ send_keys(:backspace)
99
+ end
100
+ sleep(0.5)
101
+ send_keys(:tab)
102
+ end
103
+ end
104
+ end
83
105
  end
84
106
  end
@@ -627,25 +627,7 @@ 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
- case data_field.get_native_attribute('tagName').downcase.to_sym
631
- when :textarea
632
- data_field.set('')
633
- when :div
634
- data_field.set('')
635
- else
636
- field_type = data_field.get_native_attribute('type')
637
- field_type = field_type.downcase.to_sym unless field_type.nil?
638
- if field_type == :number
639
- data_field.set('')
640
- else
641
- length = data_field.get_value.length
642
- length.times do
643
- data_field.send_keys(:backspace)
644
- end
645
- sleep(0.5)
646
- data_field.send_keys(:tab)
647
- end
648
- end
630
+ data_field.clear
649
631
  else
650
632
  case data_field.get_object_type
651
633
  when :checkbox
@@ -771,25 +771,7 @@ 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
- case data_field.get_native_attribute('tagName').downcase.to_sym
775
- when :textarea
776
- data_field.set('')
777
- when :div
778
- data_field.set('')
779
- else
780
- field_type = data_field.get_native_attribute('type')
781
- field_type = field_type.downcase.to_sym unless field_type.nil?
782
- if field_type == :number
783
- data_field.set('')
784
- else
785
- length = data_field.get_value.length
786
- length.times do
787
- data_field.send_keys(:backspace)
788
- end
789
- sleep(0.5)
790
- data_field.send_keys(:tab)
791
- end
792
- end
774
+ data_field.clear
793
775
  else
794
776
  case data_field.get_object_type
795
777
  when :checkbox
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '2.3.5'
2
+ VERSION = '2.3.6'
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.5
4
+ version: 2.3.6
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-19 00:00:00.000000000 Z
11
+ date: 2017-12-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler