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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 58d8bc18133617527821d0a7c7be47c0528978567b66277aa9a1ff0b0cbdcaa8
4
- data.tar.gz: 0a622745a70d3a4d9de923ee27295377096203a170bddcf8517acaee028ba19f
3
+ metadata.gz: b0025f2cd90d1613fc5699f80dfe27de1e9117d3d1045d200199cadf7073b7c9
4
+ data.tar.gz: 6dae02265d6ab3c436fe415c09f040276d290d0c5c63e94b0b30c3dc841d4196
5
5
  SHA512:
6
- metadata.gz: 9a512bbe4c7fa4bfb6d4073d6fce4a0f40103d1825a6d6a54139e32c0717d2708dfe255ae0124a6cf98869490d74d5eef3fd009bb425234c62a7e29200672f7b
7
- data.tar.gz: db42b665475663853467ca009fdac381918bc569fa029aded63237ffbd21eccbf681c0e305399787e648d1b4bc5c1847a2c7f66d6c58da15a2f3bdd29b620529
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
- @element_class.new(*@args)
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
@@ -1,3 +1,3 @@
1
1
  module AePageObjects
2
- VERSION = '4.3.1.tim2'.freeze
2
+ VERSION = '4.3.1.tim3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ae_page_objects
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1.tim2
4
+ version: 4.3.1.tim3
5
5
  platform: ruby
6
6
  authors:
7
7
  - AppFolio Engineering