Created
March 4, 2009 21:58
-
-
Save oelmekki/74035 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# in order to be able to do in step definitions : | |
# webrat_session.page.should have_selector( css3_selector ) | |
module WWW | |
class Mechanize | |
class Page | |
def has_selector?( selector ) | |
not search( selector ).empty? | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment