testcentricity_web 3.2.7 → 3.2.8

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: 4cf0527341127362a18f4192a2c5d0656349e57030dd660689b163ab2544732e
4
- data.tar.gz: aaa6fd6abd7855826917a8e64c1bdb4b15ea66178186e639fefcb5b97d339560
3
+ metadata.gz: c8da632e968dc1be54c1f21322e000b267ea1238ff0109c53987206dc83fb4bc
4
+ data.tar.gz: 4c97c9e3a7e5b1527b7eda224e72dbbaeabfd6ca2e1f2d6add1b6aaa3e82ef19
5
5
  SHA512:
6
- metadata.gz: a4b1322ea1c79052e35f94ebd5a6b3b308acb62a0f85d64f0d462e93c5aa1f37fe62ffeb7e01b9b21e3ea763b92933987fc65fa2892088c784dae0a9434867dc
7
- data.tar.gz: a398d3e9052b7f05235bca6aa73888513f05293802d2901b59ea6704c8b32cabcb078d173f04294b65ac613aa42c3dff07faf28a04cc94019115f431a04a9bf3
6
+ metadata.gz: c780b3717740b2822058dae52ce23049636c27bc66fc42f241ba5df77bbef872ff0bdec45ef524402b4eccbe30ce0111779fbd165ff89276197940babcee102e
7
+ data.tar.gz: 84527c5cd2ed32bb0ecc8d899198186b227149155ea3e49c2dd2e448c448052283fe088b2c0952ca79e5771492780d3606f0eb0402905a9794098b5073cf3cfd
@@ -1,6 +1,11 @@
1
1
  # CHANGELOG
2
2
  All notable changes to this project will be documented in this file.
3
3
 
4
+ ## [3.2.8] - 08-FEB-2020
5
+
6
+ ### Fixed
7
+ * Fixed `UIElement.visible?` method that was broken in release 3.2.7.
8
+
4
9
  ## [3.2.7] - 05-FEB-2020
5
10
 
6
11
  ### Added
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- testcentricity_web (3.2.7)
4
+ testcentricity_web (3.2.8)
5
5
  appium_lib
6
6
  browserstack-local
7
7
  capybara (>= 3.1, < 4)
@@ -33,7 +33,7 @@ GEM
33
33
  ice_nine (~> 0.11.0)
34
34
  thread_safe (~> 0.3, >= 0.3.1)
35
35
  browserstack-local (1.3.0)
36
- capybara (3.30.0)
36
+ capybara (3.31.0)
37
37
  addressable
38
38
  mini_mime (>= 0.1.3)
39
39
  nokogiri (~> 1.8)
@@ -56,7 +56,7 @@ GEM
56
56
  faye-websocket (0.10.9)
57
57
  eventmachine (>= 0.12.0)
58
58
  websocket-driver (>= 0.5.1)
59
- ffi (1.12.1)
59
+ ffi (1.12.2)
60
60
  i18n (1.8.2)
61
61
  concurrent-ruby (~> 1.0)
62
62
  ice_nine (0.11.2)
@@ -67,14 +67,14 @@ GEM
67
67
  os (1.0.1)
68
68
  power_assert (1.1.5)
69
69
  public_suffix (4.0.3)
70
- rack (2.1.1)
70
+ rack (2.2.0)
71
71
  rack-test (1.1.0)
72
72
  rack (>= 1.0, < 3)
73
73
  rake (13.0.1)
74
74
  redcarpet (3.5.0)
75
75
  regexp_parser (1.6.0)
76
76
  ruby-ole (1.2.12.2)
77
- rubyzip (2.0.0)
77
+ rubyzip (2.2.0)
78
78
  selenium-webdriver (3.142.7)
79
79
  childprocess (>= 0.5, < 4.0)
80
80
  rubyzip (>= 1.2.2)
@@ -1,3 +1,3 @@
1
1
  module TestCentricityWeb
2
- VERSION = '3.2.7'
2
+ VERSION = '3.2.8'
3
3
  end
@@ -194,9 +194,29 @@ module TestCentricity
194
194
  # remember_me_checkbox.visible?
195
195
  #
196
196
  def visible?
197
- obj, = find_element
197
+ obj, type = find_element
198
198
  exists = obj
199
- exists ? obj.visible? : false
199
+ invisible = false
200
+ if type == :css
201
+ Capybara.using_wait_time 0.1 do
202
+ # is object itself hidden with .ui-helper-hidden class?
203
+ self_hidden = page.has_css?("#{@locator}.ui-helper-hidden")
204
+ # is parent of object hidden, thus hiding the object?
205
+ parent_hidden = page.has_css?(".ui-helper-hidden > #{@locator}")
206
+ # is grandparent of object, or any other ancestor, hidden?
207
+ other_ancestor_hidden = page.has_css?(".ui-helper-hidden * #{@locator}")
208
+ # if any of the above conditions are true, then object is invisible
209
+ invisible = self_hidden || parent_hidden || other_ancestor_hidden
210
+ end
211
+ else
212
+ invisible = !obj.visible? if exists
213
+ end
214
+ # the object is visible if it exists and it is not invisible
215
+ if exists && !invisible
216
+ true
217
+ else
218
+ false
219
+ end
200
220
  end
201
221
 
202
222
  # Is UI object hidden (not visible)?
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.7
4
+ version: 3.2.8
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-02-04 00:00:00.000000000 Z
11
+ date: 2020-02-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler