DefactoSoftware / test_selector

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

Extend the Hound `find_element` function #8

Open sn3p opened 7 years ago

sn3p commented 7 years ago

This would be nice:

def find_element(:test, view_module, retries \\ 5) do
  {:safe, test_selector} = view_module.test()
  find_element(:xpath, ~s|//*[@#{test_selector}]|, retries)
end

find_element(:test, MyModule)

But this :(

** (CompileError) lib/test_selector/test_helpers.ex:1: imported Hound.Helpers.Page.find_element/2 conflicts with local function
sn3p commented 7 years ago

Created an issue at https://github.com/HashNuke/hound/issues/171