   @doc """
   Matches the Element's content with the provided text and raises if not found
   """
-  @spec assert_text(Element.t(), String.t()) :: boolean()
+  @spec assert_text(parent, String.t()) :: boolean()
   @spec assert_text(parent, Query.t(), String.t()) :: boolean()
 
   def assert_text(parent, query, text) when is_binary(text) do

  @type parent ::
          element
          | session
  @type locator :: String.t()
  @type opts :: Query.opts()

  @default_max_wait_time 3_000

  Searches for css that should not be on the page
  """
  @spec has_no_css?(parent, Query.t(), String.t()) :: boolean()
  @spec has_no_css?(parent, String.t()) :: boolean()

  def has_no_css?(parent, query, css) when is_binary(css) do
    parent
