Module: WatirSplash

Defined in:
lib/watirsplash/rspec_patches.rb,
lib/watirsplash/cli.rb,
lib/watirsplash/util.rb,
lib/watirsplash/browser.rb,
lib/watirsplash/version.rb,
lib/watirsplash/page/base.rb,
lib/watirsplash/spec_helper.rb,
lib/watirsplash/html_formatter.rb,
lib/watirsplash/generators/page.rb,
lib/watirsplash/frameworks/helper.rb,
lib/watirsplash/generators/helper.rb,
lib/watirsplash/generators/new_project.rb,
lib/watirsplash/frameworks/watir-webdriver/ie.rb,
lib/watirsplash/frameworks/watir-webdriver/chrome.rb,
lib/watirsplash/frameworks/watir-webdriver/firefox.rb

Overview

add #within(timeout) and #during(timeout) methods for every matcher for allowing to wait until some condition.

div.click
another_div.should be_present.within(5)

expect {
  div.click
}.to change {another_div.text}.from("before").to("after").within(5)

expect {
  div.click
}.to make {another_div.present?}.within(5)

expect {
  div.click
}.to change {another_div.text}.soon

Defined Under Namespace

Modules: Frameworks, Generators, Page, RSpecPatches, SpecHelper, Version Classes: Browser, CLI, HtmlFormatter, JavaScriptError, Util