testcentricity_web 3.2.11 → 3.2.12

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
  SHA256:
3
- metadata.gz: cec5c9aa72cd0a6772b8ac1fd96174fdddc3cda8753fd2260b5271edbeb7fa7a
4
- data.tar.gz: 0e995b14b3894a98a0f9c1d93e20f8c49425259e5c788ae0e3fc1ba84069e560
3
+ metadata.gz: 45255a5e0001ea076f691aed9284b7c1eb4c9857aaa79dcf0845f82290b3bac7
4
+ data.tar.gz: 0ebd75ccb27af3be6f4146cf20897fe9be69cb5cdcaf9a0566d1c35c57e68585
5
5
  SHA512:
6
- metadata.gz: f07d3e3e852c1dee34b85e4698980006237ac09abb6844ba83a60fa20e3ae2faf4c5aaaeeb66ac2f7357a45e948cfad38b50391e2a625a8de16568976a7b07fa
7
- data.tar.gz: ab98d66b6b4f73db2c73fcda34fca9d84af521f30acb340a49ab6cd2383cab0721171194d2fcc5be380f4e3be0310e3342573c5cad3c12a494ad556d0706d97c
6
+ metadata.gz: 1336183ee836e42e58c0a971ebcd1e4c8eefe2b7cd11b5c7ddebb460426f4f23088d404f66929b5d5fd2255f312dd3c8b54982be45af5367db475a39756924b2
7
+ data.tar.gz: 1b352854c16a52970b1e335b1af43412710e9102a69ab70a01a3ebd39d9a6a7f3a3192caa491d063d65ccb7972854188e8672a3803b2da259838e4d3c2f18fce
data/CHANGELOG.md CHANGED
@@ -1,15 +1,22 @@
1
1
  # CHANGELOG
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [3.2.12] - 11-MAR-2020
5
+
6
+ ### Added
7
+ * Added `UIElement.focused?` method.
8
+ * Updated `PageObject.verify_ui_states` and `PageSection.verify_ui_states` methods to support verification of the
9
+ `focused` property.
10
+
4
11
  ## [3.2.11] - 10-MAR-2020
5
12
 
6
13
  ### Added
7
- * Added `PageSection.verify_focus_order`method.
14
+ * Added `PageSection.verify_focus_order` method.
8
15
 
9
16
  ## [3.2.10] - 09-MAR-2020
10
17
 
11
18
  ### Added
12
- * Added `PageObject.verify_focus_order`method.
19
+ * Added `PageObject.verify_focus_order` method.
13
20
 
14
21
  ## [3.2.9] - 12-FEB-2020
15
22
 
data/Gemfile.lock ADDED
@@ -0,0 +1,112 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ testcentricity_web (3.2.12)
5
+ appium_lib
6
+ browserstack-local
7
+ capybara (>= 3.1, < 4)
8
+ childprocess (~> 0.5)
9
+ chronic (= 0.10.2)
10
+ faker
11
+ i18n
12
+ os (~> 1.0)
13
+ selenium-webdriver
14
+ spreadsheet (= 1.1.7)
15
+ test-unit
16
+ virtus
17
+ webdrivers (~> 4.0)
18
+
19
+ GEM
20
+ remote: https://rubygems.org/
21
+ specs:
22
+ addressable (2.7.0)
23
+ public_suffix (>= 2.0.2, < 5.0)
24
+ appium_lib (10.5.0)
25
+ appium_lib_core (~> 3.3)
26
+ nokogiri (~> 1.8, >= 1.8.1)
27
+ tomlrb (~> 1.1)
28
+ appium_lib_core (3.5.0)
29
+ faye-websocket (~> 0.10.0)
30
+ selenium-webdriver (~> 3.14, >= 3.14.1)
31
+ axiom-types (0.1.1)
32
+ descendants_tracker (~> 0.0.4)
33
+ ice_nine (~> 0.11.0)
34
+ thread_safe (~> 0.3, >= 0.3.1)
35
+ browserstack-local (1.3.0)
36
+ capybara (3.31.0)
37
+ addressable
38
+ mini_mime (>= 0.1.3)
39
+ nokogiri (~> 1.8)
40
+ rack (>= 1.6.0)
41
+ rack-test (>= 0.6.3)
42
+ regexp_parser (~> 1.5)
43
+ xpath (~> 3.2)
44
+ childprocess (0.9.0)
45
+ ffi (~> 1.0, >= 1.0.11)
46
+ chronic (0.10.2)
47
+ coercible (1.0.0)
48
+ descendants_tracker (~> 0.0.1)
49
+ concurrent-ruby (1.1.6)
50
+ descendants_tracker (0.0.4)
51
+ thread_safe (~> 0.3, >= 0.3.1)
52
+ equalizer (0.0.11)
53
+ eventmachine (1.2.7)
54
+ faker (2.10.2)
55
+ i18n (>= 1.6, < 2)
56
+ faye-websocket (0.10.9)
57
+ eventmachine (>= 0.12.0)
58
+ websocket-driver (>= 0.5.1)
59
+ ffi (1.12.2)
60
+ i18n (1.8.2)
61
+ concurrent-ruby (~> 1.0)
62
+ ice_nine (0.11.2)
63
+ mini_mime (1.0.2)
64
+ mini_portile2 (2.4.0)
65
+ nokogiri (1.10.9)
66
+ mini_portile2 (~> 2.4.0)
67
+ os (1.0.1)
68
+ power_assert (1.1.6)
69
+ public_suffix (4.0.3)
70
+ rack (2.2.2)
71
+ rack-test (1.1.0)
72
+ rack (>= 1.0, < 3)
73
+ rake (13.0.1)
74
+ redcarpet (3.5.0)
75
+ regexp_parser (1.7.0)
76
+ ruby-ole (1.2.12.2)
77
+ rubyzip (2.2.0)
78
+ selenium-webdriver (3.142.7)
79
+ childprocess (>= 0.5, < 4.0)
80
+ rubyzip (>= 1.2.2)
81
+ spreadsheet (1.1.7)
82
+ ruby-ole (>= 1.0)
83
+ test-unit (3.3.5)
84
+ power_assert
85
+ thread_safe (0.3.6)
86
+ tomlrb (1.2.9)
87
+ virtus (1.0.5)
88
+ axiom-types (~> 0.1)
89
+ coercible (~> 1.0)
90
+ descendants_tracker (~> 0.0, >= 0.0.3)
91
+ equalizer (~> 0.0, >= 0.0.9)
92
+ webdrivers (4.2.0)
93
+ nokogiri (~> 1.6)
94
+ rubyzip (>= 1.3.0)
95
+ selenium-webdriver (>= 3.0, < 4.0)
96
+ websocket-driver (0.7.1)
97
+ websocket-extensions (>= 0.1.0)
98
+ websocket-extensions (0.1.4)
99
+ xpath (3.2.0)
100
+ nokogiri (~> 1.8)
101
+
102
+ PLATFORMS
103
+ ruby
104
+
105
+ DEPENDENCIES
106
+ bundler
107
+ rake
108
+ redcarpet
109
+ testcentricity_web!
110
+
111
+ BUNDLED WITH
112
+ 2.1.4
data/README.md CHANGED
@@ -495,6 +495,7 @@ With TestCentricity, all UI elements are based on the **UIElement** class, and i
495
495
  element.disabled?
496
496
  element.displayed?
497
497
  element.obscured?
498
+ element.focused?
498
499
  element.content_editable?
499
500
  element.get_value
500
501
  element.count
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '3.2.11'
2
+ VERSION = '3.2.12'
3
3
  end
@@ -43,6 +43,8 @@ module TestCentricity
43
43
  ui_object.hidden?
44
44
  when :displayed
45
45
  ui_object.displayed?
46
+ when :focused
47
+ ui_object.focused?
46
48
  when :width
47
49
  ui_object.width
48
50
  when :height
@@ -263,6 +263,19 @@ module TestCentricity
263
263
  obj.obscured?
264
264
  end
265
265
 
266
+ # Does UI object have the current focus?
267
+ #
268
+ # @return [Boolean]
269
+ # @example
270
+ # first_name_field.focused?
271
+ #
272
+ def focused?
273
+ obj, type = find_element(visible = :all)
274
+ object_not_found_exception(obj, type)
275
+ focused_obj = page.driver.browser.switch_to.active_element
276
+ focused_obj == obj.native
277
+ end
278
+
266
279
  # Return a human readable representation of the UI element
267
280
  #
268
281
  # @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.2.11
4
+ version: 3.2.12
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: 2020-03-10 00:00:00.000000000 Z
11
+ date: 2020-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -253,6 +253,7 @@ files:
253
253
  - CHANGELOG.md
254
254
  - CODE_OF_CONDUCT.md
255
255
  - Gemfile
256
+ - Gemfile.lock
256
257
  - LICENSE.md
257
258
  - README.md
258
259
  - Rakefile