ae_page_objects 4.3.1.tim2 → 4.3.1.tim3
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 +14 -3
- 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: b0025f2cd90d1613fc5699f80dfe27de1e9117d3d1045d200199cadf7073b7c9
|
4
|
+
data.tar.gz: 6dae02265d6ab3c436fe415c09f040276d290d0c5c63e94b0b30c3dc841d4196
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9f846b4daa76ef8d3f59c96bedd65c79bc474c474744c31d5903ad355b89a5e19463793b04174633a10f580dfecf2839ec69276f18e695ea43eda83887697fa
|
7
|
+
data.tar.gz: ed76dbaa70c21b1a1cc62f4b0e7976064c664b4181aeb39ec0614c95dc9e097c79a4195d8f2ea015c177eddf1cee63ba8885a4203bc2a3a9a55dfead7d683f90
|
@@ -113,8 +113,19 @@ module AePageObjects
|
|
113
113
|
|
114
114
|
private
|
115
115
|
|
116
|
-
def load_element
|
117
|
-
@
|
116
|
+
def load_element(wait: true)
|
117
|
+
args = @args.dup
|
118
|
+
|
119
|
+
options_or_locator = args.pop
|
120
|
+
options = if options_or_locator.is_a?(Hash)
|
121
|
+
options_or_locator.dup.merge(wait: wait)
|
122
|
+
else
|
123
|
+
{ locator: options_or_locator, wait: wait }
|
124
|
+
end
|
125
|
+
|
126
|
+
args << options
|
127
|
+
|
128
|
+
@element_class.new(*args)
|
118
129
|
end
|
119
130
|
|
120
131
|
def implicit_element
|
@@ -122,7 +133,7 @@ module AePageObjects
|
|
122
133
|
end
|
123
134
|
|
124
135
|
def reload_element
|
125
|
-
@loaded_element = load_element
|
136
|
+
@loaded_element = load_element(wait: false)
|
126
137
|
rescue LoadingElementFailed
|
127
138
|
@loaded_element = nil
|
128
139
|
end
|