Module: Locator::Matcher
- Included in:
- Assertions
- Defined in:
- lib/locator/matcher.rb,
lib/locator/matcher/have_tag.rb,
lib/locator/matcher/have_css_class.rb
Defined Under Namespace
Classes: HaveCssClass, HaveTag
Instance Method Summary collapse
-
#contain(*args) ⇒ Object
Matches an HTML document with whatever string is given.
- #have_css(css, options = {}, &block) ⇒ Object
- #have_css_class(css_class) ⇒ Object
- #have_tag(*args, &block) ⇒ Object
- #have_xpath(xpath, options = {}, &block) ⇒ Object
Instance Method Details
#contain(*args) ⇒ Object
Matches an HTML document with whatever string is given
7 8 9 |
# File 'lib/locator/matcher.rb', line 7 def contain(*args) HaveTag.new(*args) end |
#have_css(css, options = {}, &block) ⇒ Object
19 20 21 |
# File 'lib/locator/matcher.rb', line 19 def have_css(css, = {}, &block) HaveTag.new(.delete(:content), .merge(:css => css), &block) end |
#have_css_class(css_class) ⇒ Object
23 24 25 |
# File 'lib/locator/matcher.rb', line 23 def have_css_class(css_class) HaveCssClass.new(css_class) end |