ae_page_objects 4.3.1.tim1 → 4.3.1.tim2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ae_page_objects/element_proxy.rb +6 -16
- data/lib/ae_page_objects/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 58d8bc18133617527821d0a7c7be47c0528978567b66277aa9a1ff0b0cbdcaa8
|
4
|
+
data.tar.gz: 0a622745a70d3a4d9de923ee27295377096203a170bddcf8517acaee028ba19f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a512bbe4c7fa4bfb6d4073d6fce4a0f40103d1825a6d6a54139e32c0717d2708dfe255ae0124a6cf98869490d74d5eef3fd009bb425234c62a7e29200672f7b
|
7
|
+
data.tar.gz: db42b665475663853467ca009fdac381918bc569fa029aded63237ffbd21eccbf681c0e305399787e648d1b4bc5c1847a2c7f66d6c58da15a2f3bdd29b620529
|
@@ -16,31 +16,21 @@ module AePageObjects
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def visible?(options = {})
|
19
|
-
|
20
|
-
|
21
|
-
rescue ElementNotVisible
|
22
|
-
false
|
19
|
+
reload_element
|
20
|
+
@loaded_element&.visible?
|
23
21
|
end
|
24
22
|
|
25
23
|
def hidden?(options = {})
|
26
|
-
|
27
|
-
true
|
28
|
-
rescue ElementNotHidden
|
29
|
-
false
|
24
|
+
!visible?
|
30
25
|
end
|
31
26
|
|
32
27
|
def present?(options = {})
|
33
|
-
|
34
|
-
|
35
|
-
rescue ElementNotPresent
|
36
|
-
false
|
28
|
+
reload_element
|
29
|
+
!@loaded_element.nil?
|
37
30
|
end
|
38
31
|
|
39
32
|
def absent?(options = {})
|
40
|
-
|
41
|
-
true
|
42
|
-
rescue ElementNotAbsent
|
43
|
-
false
|
33
|
+
!present?
|
44
34
|
end
|
45
35
|
|
46
36
|
def presence
|