   end
 
 
-  @doc "Clear textarea or input element's value"
+  @doc """
+  Clears textarea or input field's value
+
+      element_id = find_element(:class, "example")
+      clear_field(element_id)
+
+  You can also directly pass the selector as a tuple.
+
+      clear_field({:class, "example"})
+  """
   @spec clear_field(element) :: :ok
   def clear_field(element) do
     element_id = get_element_id(element)

  end


  @doc "Get an element's tag name"
  @spec tag_name(element) :: String.t
  def tag_name(element) do
    element_id = get_element_id(element)

  @type element_selector :: {atom, String.t}
  @type element :: element_selector | String.t

  @doc """
  Gets visible text of element. Requires the element ID.

      element_id = find_element(:css, ".example")
      visible_text(element_id)

  You can also directly pass the selector as a tuple.

      visible_text({:css, ".example"})
  """
  @spec visible_text(element) :: String.t
  def visible_text(element) do
    element_id = get_element_id(element)
