TestSelector.Test.HoundHelpers (test_selector v0.3.2) View Source

Helpers to find test-selector elements in HTML using Hound.

Link to this section Summary

Functions

Get an element test-value attribute.

Check if the element test-value attribute matches the given value.

Finds element by test selector on current page.

Same as find_test_element, but returns the a tuple with {:error, error} instead of raising.

Link to this section Functions

Link to this function

element_test_value(element)

View Source

Get an element test-value attribute.

Returns nil then the test-value attribute is not found.

Link to this function

element_test_value?(element, value)

View Source

Check if the element test-value attribute matches the given value.

  • Returns true if the value matches.
  • Returns false if the value does not match or is not found.
Link to this function

find_test_element(view_module)

View Source

Finds element by test selector on current page.

Returns an element that can be used with other element functions.

Link to this function

find_test_element(view_module, selector)

View Source
Link to this function

find_test_element(view_module, selector, value)

View Source
Link to this function

search_test_element(view_module)

View Source

Same as find_test_element, but returns the a tuple with {:error, error} instead of raising.

Link to this function

search_test_element(view_module, selector)

View Source
Link to this function

search_test_element(view_module, selector, value)

View Source