Module: Capybara::Lockstep::SynchronizeWithCatchUp
- Defined in:
- lib/capybara-lockstep/capybara_ext.rb
Instance Method Summary collapse
Instance Method Details
#synchronize(*args, &block) ⇒ Object
245 246 247 248 249 250 251 252 |
# File 'lib/capybara-lockstep/capybara_ext.rb', line 245 def synchronize(*args, &block) # This method is called by Capybara before most interactions with # the browser. It is a different method than Capybara::Lockstep.synchronize! # We use the { lazy } option to only synchronize when we're out of sync. Lockstep.auto_synchronize(lazy: true, log: 'Synchronizing before node access') super(*args, &block) end |