Skip to content

Commit

Permalink
Merge pull request #210 from thelightcosine/feature/outerhtml
Browse files Browse the repository at this point in the history
Add outer_html/1 to the Elements helper
  • Loading branch information
danhper committed Jul 19, 2018
2 parents 098a25a + cb67972 commit 08626c9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/hound/helpers/element.ex
Expand Up @@ -31,6 +31,11 @@ defmodule Hound.Helpers.Element do
def inner_text(element) do
attribute_value(element, "innerText")
end

@spec outer_html(Hound.Element.selector) :: String.t
def outer_html(element) do
attribute_value(element, "outerHTML")
end

@doc """
Enters value into field.
Expand Down

0 comments on commit 08626c9

Please sign in to comment.