lib/pagetience.rb in pagetience-0.3.0 vs lib/pagetience.rb in pagetience-0.3.1
- old
+ new
@@ -83,9 +83,10 @@
def transition_to(page, timeout=30, polling=1)
page = page.new browser
Pagetience::Meditate.for(timeout: timeout, polling: polling, msg: 'Timed out waiting for page transition.', expecting: true) { page.loaded? }
page
end
+ alias_method :wait_for_transition_to, :transition_to
private
def determine_platform
@element_platform = Pagetience::ElementPlatforms::Base.find(self)