DefactoSoftware / test_selector

Elixir library to help selecting the right elements in your tests.
MIT License
14 stars 2 forks source link

Add search_test_element helper #9

Closed sn3p closed 7 years ago

sn3p commented 7 years ago

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

assert search_test_element(MainNavigationCell, "does_not_exist") == {:error, :no_such_element}