Skip to content

Commit

Permalink
Clarify documentation regarding retrieving hidden element text. (#474)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhanberg committed Oct 24, 2019
1 parent e15c8b2 commit 00a7b4e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion lib/wallaby/browser.ex
Expand Up @@ -604,7 +604,9 @@ defmodule Wallaby.Browser do
end

@doc """
Gets the Element's text value.
Gets the element's text value.
If the element is not visible, the return value will be `""`.
"""
@spec text(parent) :: String.t
@spec text(parent, Query.t) :: String.t
Expand Down
4 changes: 3 additions & 1 deletion lib/wallaby/element.ex
Expand Up @@ -109,7 +109,9 @@ defmodule Wallaby.Element do
end

@doc """
Returns the text from the element.
Gets the element's text value.
If the element is not visible, the return value will be `""`.
"""
@spec text(t) :: String.t

Expand Down

0 comments on commit 00a7b4e

Please sign in to comment.