xpage 0.5.2 → 0.5.3

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/xpage.rb +5 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 84049bc80da8951ecd6cead64ae44fd25afdd338
4
- data.tar.gz: 4ce30f56f026f7ff40e25136dda486f05d3b875a
3
+ metadata.gz: f54393408123b700fb1b9272892e2d88ff1d8fa0
4
+ data.tar.gz: f016a8753ff6aa61c97e27b70b61066b90957faf
5
5
  SHA512:
6
- metadata.gz: 63a5cabff47f2f08bb2071c511ab1552809ea7a8945072ca7deadd10fc0a62b807b521292db6b1c6733be452f70e7613c2912308d8a404383b47250cbc3d960a
7
- data.tar.gz: 2d3a0fdcc040563648e708752f79c6e82fdabf4d1ff95a8e4bee85bd977f72b38eb8d38312b7e831b1fb681cba60c790329af38bfcf3141e7723c2086e8dd016
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xpage
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Barker