test_selector v0.3.0 TestSelector.Test.HoundHelpers
Test Helpers.
Link to this section Summary
Functions
Get an element test-value
attribute.
It returns nil
then the test-value
attribute is not found.
Check if the element test-value
attribute matches the given value.
Finds element by test selector on current page. It returns an element that can be used with other element functions.
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)
Get an element test-value
attribute.
It returns nil
then the test-value
attribute is not found.
Link to this function
element_test_value?(element, value)
Check if the element test-value
attribute matches the given value.
- It returns
true
if the value matches. - It returns
false
if the value does not match or is not found.
Link to this function
find_test_element(view_module)
Finds element by test selector on current page. It returns an element that can be used with other element functions.
Link to this function
find_test_element(view_module, selector)
Link to this function
find_test_element(view_module, selector, value)
Link to this function
search_test_element(view_module)
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)
Link to this function