Hound.Matchers.Text

Matchers to work with page text

Summary

Functions

Returns true if text is found on the page

Returns true if text is found on the page inside an element

Types

Functions

visible_on_page?(text, retries \\ 5)

Specs

visible_on_page?(text, retries) :: Boolean.t

Returns true if text is found on the page.

visible_on_page?(“Paragraph”) visible_on_page?(“Paragraph”, 4)

The text is matched case-sensitive.

visible_on_page_within?(text, selector, retries \\ 5)

Specs

visible_on_page_within?(selector, text, retries) :: Boolean.t

Returns true if text is found on the page inside an element.

visible_on_page_within?({:class, “block”}, “Paragraph”) visible_on_page_within?({:id, “id”}, “Paragraph”) visible_on_page_within?({:id, “id”}, “Paragraph”, 5)

The text is matched case-sensitive.