 
 
   @spec find_all_within_element(String.t, atom, String.t, Integer.t) :: List.t
-  def find_all_within_element(element_id, strategy, selector, retries) do
+  def find_all_within_element(element_id, strategy, selector, timeout_in_seconds) do
     session_id = Hound.current_session_id
     params = [using: Hound.InternalHelpers.selector_strategy(strategy), value: selector]
-    case make_req(:post, "session/#{session_id}/element/#{element_id}/elements", params, [], retries) do
+    case make_req(:post, "session/#{session_id}/element/#{element_id}/elements", params, [], timeout_in_seconds*2) do
       {:error, value} ->
         {:error, value}
       elements ->



  @spec find_element(String.t, String.t, Integer.t) :: Dict.t
  def find_element(strategy, selector, retries) do
    session_id = Hound.current_session_id
    params = [using: Hound.InternalHelpers.selector_strategy(strategy), value: selector]

    case make_req(:post, "session/#{session_id}/element", params, [], retries) do
      %{"ELEMENT" => element_id} ->
        element_id
      value ->



  @spec find_all_elements(atom, String.t, Integer.t) :: List.t
  def find_all_elements(strategy, selector, timeout_in_seconds) do
    session_id = Hound.current_session_id
    params = [using: Hound.InternalHelpers.selector_strategy(strategy), value: selector]
    case make_req(:post, "session/#{session_id}/elements", params, [], timeout_in_seconds*2) do
      {:error, value} ->
        {:error, value}
      elements ->
