HashNuke / hound

Elixir library for writing integration tests and browser automation

Home Page:http://hexdocs.pm/hound

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

find_all_within_element with :xpath strategy return elements outside the parent element

silentist opened this issue · comments

Suppose there are 2 select element with name subtitles,
Hound.Helpers.Page.find_all_elements(:xpath, ~s|//select[@name="subtitles"]|)
|> Enum.at(1)
|> Hound.Helpers.Page.find_all_within_element(:xpath, ~s|//option|)
will return all options of the 2 select