xpage 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/xpage.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f54393408123b700fb1b9272892e2d88ff1d8fa0
|
4
|
+
data.tar.gz: f016a8753ff6aa61c97e27b70b61066b90957faf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: de60d7810d2228afab7ed9e20212cac3ffa6099b2af8a0901facd82d17c9c779f1eafe4ff30785c89d9370f94f27f23e7a6f6431cbe6adba4b3def4ee031b6e4
|
7
|
+
data.tar.gz: 9c784a194fddd043a2cea61a6daf7f716dc06ad91bc4953c8f33bcf275c97e04af3b14f01abff62918ae345c5b8a23031c2133cd17003761d34ab4e4312a130f
|
data/lib/xpage.rb
CHANGED
@@ -131,15 +131,15 @@ class Xpage
|
|
131
131
|
end
|
132
132
|
|
133
133
|
def wait_for_xpath_to_be_enabled(xpath)
|
134
|
-
@@wait.until { xpath_enabled? xpath }
|
134
|
+
@@wait.until(description: 'wait_for_xpath_to_be_enabled') { xpath_enabled? xpath }
|
135
135
|
end
|
136
136
|
|
137
137
|
def wait_for_xpath_to_display(xpath)
|
138
|
-
@@wait.until { xpath_displayed? xpath }
|
138
|
+
@@wait.until(description: 'wait_for_xpath_to_display') { xpath_displayed? xpath }
|
139
139
|
end
|
140
140
|
|
141
141
|
def wait_for_xpath_to_exist(xpath)
|
142
|
-
@@wait.until { xpath_exists? xpath }
|
142
|
+
@@wait.until(description: 'wait_for_xpath_to_exist') { xpath_exists? xpath }
|
143
143
|
end
|
144
144
|
|
145
145
|
def xpath_displayed?(xpath)
|
@@ -181,6 +181,7 @@ class Xpage
|
|
181
181
|
|
182
182
|
def method_missing(method, *args, &block)
|
183
183
|
method = method.to_s
|
184
|
+
p "method: " + method
|
184
185
|
@eval='raise "Method not found for: #{method}"'
|
185
186
|
|
186
187
|
if method[-11..-1]=='_displayed?'
|
@@ -200,6 +201,7 @@ class Xpage
|
|
200
201
|
@eval = "select_xpath(@#{extracted},args[0])"
|
201
202
|
end
|
202
203
|
|
204
|
+
p "@eval: " + @eval
|
203
205
|
eval @eval
|
204
206
|
|
205
207
|
end
|