TucoTuco.Assertions
SourceSummary
assert_selector(selector) | Assert that the current page contains the xpath selector specified |
assert_selector(using, selector) | Assert that the current page contians the selector specified |
refute_selector(selector) | Refute the existence of an xpath in the current page with the selector specified |
refute_selector(using, selector) | Refute the existence of the selector in the current page using the specifiend strategy. See assert_selector/3 for more info on strategies |
Functions
Assert that the current page contains the xpath selector specified.
Assert that the current page contians the selector specified.
Using may be one of:
* :class - Search for an element with the given class attribute.
* :class_name - alias for :class
* :css - Search for an element using a CSS selector.
* :id - Find an element with the given id attribute.
* :name - Find an element with the given name attribute.
* :link - Find an link element containing the given text.
* :partial_link - Find a link element containing a superset of the given text.
* :tag - Find a HTML tag of the given type.
* :xpath - Use [XPath](http://www.w3.org/TR/xpath/) to search for an element.
Refute the existence of an xpath in the current page with the selector specified.