testcentricity_web 3.0.17 → 3.0.18

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: 28c21dc1cccc47282ea868cf24537968b8afc5a2
4
- data.tar.gz: fac64767a0b4ea3f9c929f502ad624637828bcb1
3
+ metadata.gz: c3a238fc7c78ee401e038e1e7a58b08feecae064
4
+ data.tar.gz: 8686117300d6b4861a29716b5efb83bbe7991156
5
5
  SHA512:
6
- metadata.gz: 83636b0f706a88718b7e688aac1bd13c16f6d5c615acc8aeaf678737a1a811bff09d0d5540ea6f3000db9f1f8e21deef18484307210d287fe9ef34bcb4cdc5dc
7
- data.tar.gz: e119b96eaa75bda7da9d592f84bf3242c95bbd98289970fc25ba722061814702c5693e7e1011c783953c7b97067ead8b9f1d0e696e539e1294f439f20a4e7f49
6
+ metadata.gz: 86f86e3b253b29c6d248109425ba901fb4e1d023663beae06ddce01208948eabc1a550ab6dab9deb72901ea9e72bdb85f749d80f2eca49dea25d041dfa32a4ed
7
+ data.tar.gz: 6d759db4de2ca79732be3900e5735c39410bc1153dc4466898fd1f554719af583cc3577656866eb6290a89e650102dc40a2408a49d83cf815ea6507d25850a06
data/CHANGELOG.md CHANGED
@@ -1,7 +1,21 @@
1
1
  # CHANGELOG
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
- ## [3.0.17] - 2018-09-19
4
+ ## [3.0.18] - 2018-10-02
5
+
6
+ ### Added
7
+ * `UIElement.style` method.
8
+ * Updated `PageObject.verify_ui_states` and `PageSection.verify_ui_states` methods to support verification of `style` property.
9
+
10
+ ### Changed
11
+ * Updated device profiles for iPhone 7 (iOS 12) with Mobile Firefox browser and iPad (iOS 12) with Mobile Firefox browser.
12
+ * Updated device profiles for iPhone 7 (iOS 12) with Mobile Edge browser and iPad (iOS 12) with Mobile Edge browser.
13
+ * Updated device profiles for iPhone 7 (iOS 12) with Mobile Chrome browser and iPad (iOS 12) with Mobile Chrome browser.
14
+
15
+ ### Removed
16
+ * Removed `iPhone`, `iPhone4`, and `iPhone5` device profiles.
17
+
18
+ ## [3.0.17] - 2018-10-01
5
19
 
6
20
  ### Added
7
21
  * `UIElement.aria_disabled?` and `UIElement.aria_label` methods.
data/README.md CHANGED
@@ -487,12 +487,15 @@ With TestCentricity, all UI elements are based on the **UIElement** class, and i
487
487
  element.displayed?
488
488
  element.get_value
489
489
  element.count
490
+ element.style
490
491
  element.width
491
492
  element.height
492
493
  element.x
493
494
  element.y
494
495
  element.get_attribute(attrib)
495
496
  element.get_native_attribute(attrib)
497
+ element.aria_disabled?
498
+ element.aria_label
496
499
 
497
500
  **Waiting methods:**
498
501
 
@@ -718,12 +721,12 @@ the `WEB_BROWSER` Environment Variable must be set to one of the values from the
718
721
 
719
722
  `WEB_BROWSER` | `HOST_BROWSER` | **CSS Screen Dimensions** | **Default Orientation** | **OS Version**
720
723
  ----------------------|----------------------|-----------|----------|---------
721
- `ipad` |`chrome` |1024 x 768 |landscape |iOS 10
722
- `ipad_pro` |`chrome` |1366 x 1024|landscape |iOS 11
723
- `ipad_pro_10_5` |`chrome` |1112 x 834 |landscape |iOS 11
724
- `ipad_chrome` |`chrome` |1024 x 768 |landscape |iOS 11 - Mobile Chrome browser for iOS
725
- `ipad_firefox` |`chrome` |1024 x 768 |landscape |iOS 11 - Mobile Firefox browser for iOS
726
- `ipad_edge` |`chrome` |1024 x 768 |landscape |iOS 11 - Mobile Edge browser for iOS
724
+ `ipad` |`chrome` |1024 x 768 |landscape |iOS 12
725
+ `ipad_pro` |`chrome` |1366 x 1024|landscape |iOS 12
726
+ `ipad_pro_10_5` |`chrome` |1112 x 834 |landscape |iOS 12
727
+ `ipad_chrome` |`chrome` |1024 x 768 |landscape |iOS 12 - Mobile Chrome browser for iOS
728
+ `ipad_firefox` |`chrome` |1024 x 768 |landscape |iOS 12 - Mobile Firefox browser for iOS
729
+ `ipad_edge` |`chrome` |1024 x 768 |landscape |iOS 12 - Mobile Edge browser for iOS
727
730
  `android_tablet` |`chrome` |1024 x 768 |landscape |Android 3.0
728
731
  `kindle_fire` |`chrome` |1024 x 600 |landscape |
729
732
  `kindle_firehd7` |`chrome` |800 x 480 |landscape |Fire OS 3
@@ -735,19 +738,16 @@ the `WEB_BROWSER` Environment Variable must be set to one of the values from the
735
738
  `google_nexus7` |`chrome` |960 x 600 |landscape |Android 4.4.4
736
739
  `google_nexus9` |`chrome` |1024 x 768 |landscape |Android 5.1
737
740
  `google_nexus10` |`chrome` |1280 x 800 |landscape |Android 5.1
738
- `iphone` |`chrome` |320 x 480 |portrait |iOS 9.1
739
- `iphone4` |`chrome` |320 x 480 |portrait |iOS 9.1
740
- `iphone5` |`chrome` |320 x 568 |portrait |iOS 9.1
741
- `iphone6` |`chrome` |375 x 667 |portrait |iOS 9.1
742
- `iphone6_plus` |`chrome` |414 x 736 |portrait |iOS 9.1
743
- `iphone7` |`chrome` |375 x 667 |portrait |iOS 10
744
- `iphone7_plus` |`chrome` |414 x 736 |portrait |iOS 10
745
- `iphone7_chrome` |`chrome` |375 x 667 |portrait |iOS 11 - Mobile Chrome browser for iOS
746
- `iphone7_firefox` |`chrome` |375 x 667 |portrait |iOS 11 - Mobile Firefox browser for iOS
747
- `iphone7_edge` |`chrome` |375 x 667 |portrait |iOS 11 - Microsoft Edge browser for iOS
748
- `iphone8` |`chrome` |375 x 667 |portrait |iOS 11
749
- `iphone8_plus` |`chrome` |414 x 736 |portrait |iOS 11
750
- `iphonex` |`chrome` |375 x 812 |portrait |iOS 11
741
+ `iphone6` |`chrome` |375 x 667 |portrait |iOS 12
742
+ `iphone6_plus` |`chrome` |414 x 736 |portrait |iOS 12
743
+ `iphone7` |`chrome` |375 x 667 |portrait |iOS 12
744
+ `iphone7_plus` |`chrome` |414 x 736 |portrait |iOS 12
745
+ `iphone7_chrome` |`chrome` |375 x 667 |portrait |iOS 12 - Mobile Chrome browser for iOS
746
+ `iphone7_firefox` |`chrome` |375 x 667 |portrait |iOS 12 - Mobile Firefox browser for iOS
747
+ `iphone7_edge` |`chrome` |375 x 667 |portrait |iOS 12 - Microsoft Edge browser for iOS
748
+ `iphone8` |`chrome` |375 x 667 |portrait |iOS 12
749
+ `iphone8_plus` |`chrome` |414 x 736 |portrait |iOS 12
750
+ `iphonex` |`chrome` |375 x 812 |portrait |iOS 12
751
751
  `android_phone` |`chrome` |360 x 640 |portrait |Android 4.2.1
752
752
  `nexus6` |`chrome` |411 x 731 |portrait |Android 6
753
753
  `pixel` |`chrome` |411 x 731 |portrait |Android 8
@@ -771,7 +771,7 @@ to `chrome`.
771
771
 
772
772
  ### Selenium Grid and Dockerized Selenium Grid hosted desktop and emulated mobile web browsers
773
773
 
774
- For desktop and emulated mobile web browsers running on Selenium Grid or Dockerized Selenium Grid environments, the following **Environment Variables** must be set
774
+ For desktop and emulated mobile web browsers running on Selenium Grid or Dockerized Selenium Grid environments ([like Zalenium](https://opensource.zalando.com/zalenium/)), the following **Environment Variables** must be set
775
775
  as described in the table below.
776
776
 
777
777
  **Environment Variable** | **Description**
@@ -1,27 +1,3 @@
1
- :iphone:
2
- :name: "iPhone"
3
- :os: ios
4
- :type: phone
5
- :css_width: 320
6
- :css_height: 480
7
- :default_orientation: portrait
8
- :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
9
- :iphone4:
10
- :name: "iPhone 4"
11
- :os: ios
12
- :type: phone
13
- :css_width: 320
14
- :css_height: 480
15
- :default_orientation: portrait
16
- :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
17
- :iphone5:
18
- :name: "iPhone 5"
19
- :os: ios
20
- :type: phone
21
- :css_width: 320
22
- :css_height: 568
23
- :default_orientation: portrait
24
- :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
25
1
  :iphone6:
26
2
  :name: "iPhone 6"
27
3
  :os: ios
@@ -29,7 +5,7 @@
29
5
  :css_width: 375
30
6
  :css_height: 667
31
7
  :default_orientation: portrait
32
- :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
8
+ :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
33
9
  :iphone6_plus:
34
10
  :name: "iPhone 6 Plus"
35
11
  :os: ios
@@ -37,7 +13,7 @@
37
13
  :css_width: 414
38
14
  :css_height: 736
39
15
  :default_orientation: portrait
40
- :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Version/9.0 Mobile/13B143 Safari/601.1"
16
+ :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
41
17
  :iphone7:
42
18
  :name: "iPhone 7"
43
19
  :os: ios
@@ -45,7 +21,7 @@
45
21
  :css_width: 375
46
22
  :css_height: 667
47
23
  :default_orientation: portrait
48
- :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/603.1.23 (KHTML, like Gecko) Version/10.0 Mobile/14E5239e Safari/602.1"
24
+ :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
49
25
  :iphone7_plus:
50
26
  :name: "iPhone 7 Plus"
51
27
  :os: ios
@@ -53,7 +29,7 @@
53
29
  :css_width: 414
54
30
  :css_height: 736
55
31
  :default_orientation: portrait
56
- :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/603.1.23 (KHTML, like Gecko) Version/10.0 Mobile/14E5239e Safari/602.1"
32
+ :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
57
33
  :iphone7_chrome:
58
34
  :name: "iPhone 7 - Chrome"
59
35
  :os: ios
@@ -61,7 +37,7 @@
61
37
  :css_width: 375
62
38
  :css_height: 667
63
39
  :default_orientation: portrait
64
- :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/67.0.3396.69 Mobile/15F79 Safari/604.1"
40
+ :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/69.0.3497.105 Mobile/15E148 Safari/605.1"
65
41
  :iphone7_firefox:
66
42
  :name: "iPhone 7 - Firefox"
67
43
  :os: ios
@@ -69,7 +45,7 @@
69
45
  :css_width: 375
70
46
  :css_height: 667
71
47
  :default_orientation: portrait
72
- :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/12.0b10862 Mobile/15F79 Safari/605.1.15"
48
+ :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/13.2b11866 Mobile/16A366 Safari/605.1.15"
73
49
  :iphone7_edge:
74
50
  :name: "iPhone 7 - MS Edge"
75
51
  :os: ios
@@ -77,7 +53,7 @@
77
53
  :css_width: 375
78
54
  :css_height: 667
79
55
  :default_orientation: portrait
80
- :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 EdgiOS/42.1.1.0 Mobile/15F79 Safari/605.1.15"
56
+ :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 EdgiOS/42.5.3 Mobile/16A366 Safari/605.1.15"
81
57
  :iphone8:
82
58
  :name: "iPhone 8"
83
59
  :os: ios
@@ -85,7 +61,7 @@
85
61
  :css_width: 375
86
62
  :css_height: 667
87
63
  :default_orientation: portrait
88
- :user_agent: "Mozilla/5.0 (iPhone; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.25 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
64
+ :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
89
65
  :iphone8_plus:
90
66
  :name: "iPhone 8 Plus"
91
67
  :os: ios
@@ -93,7 +69,7 @@
93
69
  :css_width: 414
94
70
  :css_height: 736
95
71
  :default_orientation: portrait
96
- :user_agent: "Mozilla/5.0 (iPhone; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.25 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
72
+ :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
97
73
  :iphonex:
98
74
  :name: "iPhone X"
99
75
  :os: ios
@@ -101,7 +77,7 @@
101
77
  :css_width: 375
102
78
  :css_height: 812
103
79
  :default_orientation: portrait
104
- :user_agent: "Mozilla/5.0 (iPhone; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.25 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
80
+ :user_agent: "Mozilla/5.0 (iPhone; CPU iPhone OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
105
81
  :android_phone:
106
82
  :name: "Generic Android phone"
107
83
  :os: android
@@ -213,7 +189,7 @@ nexus6:
213
189
  :css_width: 1024
214
190
  :css_height: 768
215
191
  :default_orientation: landscape
216
- :user_agent: "Mozilla/5.0 (iPad; CPU OS 10_3 like Mac OS X) AppleWebKit/603.1.23 (KHTML, like Gecko) Version/10.0 Mobile/14E5239e Safari/602.1"
192
+ :user_agent: "Mozilla/5.0 (iPad; CPU OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
217
193
  :ipad_pro:
218
194
  :name: "iPad Pro"
219
195
  :os: ios
@@ -221,7 +197,7 @@ nexus6:
221
197
  :css_width: 1366
222
198
  :css_height: 1024
223
199
  :default_orientation: landscape
224
- :user_agent: "Mozilla/5.0 (iPad; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.25 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
200
+ :user_agent: "Mozilla/5.0 (iPad; CPU OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
225
201
  :ipad_pro_10_5:
226
202
  :name: "iPad Pro 10.5 in."
227
203
  :os: ios
@@ -229,7 +205,7 @@ nexus6:
229
205
  :css_width: 1112
230
206
  :css_height: 834
231
207
  :default_orientation: landscape
232
- :user_agent: "Mozilla/5.0 (iPad; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.25 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1"
208
+ :user_agent: "Mozilla/5.0 (iPad; CPU OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 Mobile/15E148 Safari/604.1"
233
209
  :ipad_chrome:
234
210
  :name: "iPad - Chrome"
235
211
  :os: ios
@@ -237,7 +213,7 @@ nexus6:
237
213
  :css_width: 1024
238
214
  :css_height: 768
239
215
  :default_orientation: landscape
240
- :user_agent: "Mozilla/5.0 (iPad; CPU OS 11_4 like Mac OS X) AppleWebKit/604.1.34 (KHTML, like Gecko) CriOS/67.0.3396.69 Mobile/15F79 Safari/604.1"
216
+ :user_agent: "Mozilla/5.0 (iPad; CPU OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) CriOS/69.0.3497.105 Mobile/15E148 Safari/605.1"
241
217
  :ipad_firefox:
242
218
  :name: "iPad - Firefox"
243
219
  :os: ios
@@ -245,7 +221,7 @@ nexus6:
245
221
  :css_width: 1024
246
222
  :css_height: 768
247
223
  :default_orientation: landscape
248
- :user_agent: "Mozilla/5.0 (iPad; CPU OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/12.0b10862 Mobile/15F79 Safari/605.1.15"
224
+ :user_agent: "Mozilla/5.0 (iPad; CPU OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) FxiOS/13.2b11866 Mobile/16A366 Safari/605.1.15"
249
225
  :ipad_edge:
250
226
  :name: "iPad - MS Edge"
251
227
  :os: ios
@@ -253,7 +229,7 @@ nexus6:
253
229
  :css_width: 1024
254
230
  :css_height: 768
255
231
  :default_orientation: landscape
256
- :user_agent: "Mozilla/5.0 (iPad; CPU OS 11_4 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/11.0 EdgiOS/42.1.1.0 Mobile/15F79 Safari/605.1.15"
232
+ :user_agent: "Mozilla/5.0 (iPad; CPU OS 12_0 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.0 EdgiOS/42.5.3 Mobile/16A366 Safari/605.1.15"
257
233
  :android_tablet:
258
234
  :name: "Generic Android tablet"
259
235
  :os: android
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '3.0.17'
2
+ VERSION = '3.0.18'
3
3
  end
@@ -662,6 +662,8 @@ module TestCentricity
662
662
  actual = ui_object.count(visible = :all)
663
663
  when :siebel_options
664
664
  actual = ui_object.get_siebel_options
665
+ when :style
666
+ actual = ui_object.style
665
667
  when :aria_label
666
668
  actual = ui_object.aria_label
667
669
  when :aria_disabled
@@ -862,6 +862,8 @@ module TestCentricity
862
862
  actual = ui_object.count(visible = :all)
863
863
  when :siebel_options
864
864
  actual = ui_object.get_siebel_options
865
+ when :style
866
+ actual = ui_object.style
865
867
  when :aria_label
866
868
  actual = ui_object.aria_label
867
869
  when :aria_disabled
@@ -556,6 +556,16 @@ module TestCentricity
556
556
  )
557
557
  end
558
558
 
559
+ # Return UI object's style property
560
+ #
561
+ # @return [String]
562
+ # @example
563
+ # buy_now_button.style
564
+ #
565
+ def style
566
+ get_attribute('style')
567
+ end
568
+
559
569
  # Return state of UI object's aria-label property
560
570
  #
561
571
  # @return [String]
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: 3.0.17
4
+ version: 3.0.18
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: 2018-10-02 00:00:00.000000000 Z
11
+ date: 2018-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler