testcentricity_web 3.2.7 → 3.2.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/Gemfile.lock +5 -5
- data/lib/testcentricity_web/version.rb +1 -1
- data/lib/testcentricity_web/web_elements/ui_elements_helper.rb +22 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c8da632e968dc1be54c1f21322e000b267ea1238ff0109c53987206dc83fb4bc
|
|
4
|
+
data.tar.gz: 4c97c9e3a7e5b1527b7eda224e72dbbaeabfd6ca2e1f2d6add1b6aaa3e82ef19
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c780b3717740b2822058dae52ce23049636c27bc66fc42f241ba5df77bbef872ff0bdec45ef524402b4eccbe30ce0111779fbd165ff89276197940babcee102e
|
|
7
|
+
data.tar.gz: 84527c5cd2ed32bb0ecc8d899198186b227149155ea3e49c2dd2e448c448052283fe088b2c0952ca79e5771492780d3606f0eb0402905a9794098b5073cf3cfd
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
testcentricity_web (3.2.
|
|
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.
|
|
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.
|
|
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.
|
|
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.
|
|
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)
|
|
@@ -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
|
-
|
|
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.
|
|
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-
|
|
11
|
+
date: 2020-02-08 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|