Displaying 1 result from an estimated 1 matches for "be_present".
Did you mean:
pte_present
2011 Apr 16
11
added new cool matcher into my framework WatirSplash - #in
...nk changed div''s text from "before" to "after" in a
maximum of 2 seconds
expect {
link.click
}.to change {div.text}.from("before").to("after").in(2)
# clicking link makes div as present in a maximum of 2 seconds
link.click
div.should be_present.in(2)
# clicking link makes div as visible in a maximum of 2 seconds
expect {
link.click
}.to make {div.visible?}.in(2)
# use ActiveSupport for adding more meaning to numbers
require "active_support"
div.should exist.in(2.minutes)
What do you guys think? Should i add...