Skip to content
Discussion options

You must be logged in to vote

I've found a solution:

  defp get_full_page_screenshot(session) do
    %{"width" => original_width, "height" => original_height} =
      session
      |> window_size

    {width, height} =
      session
      |> find(Query.css("body"))
      |> Element.size()

    session
    |> resize_window(width, height)
    |> take_screenshot()
    |> resize_window(original_width, original_height)
  end

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by AdrianRibao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant