Skip to content

Commit

Permalink
Fix spec for take_screenshots
Browse files Browse the repository at this point in the history
  • Loading branch information
keathley committed Apr 18, 2018
1 parent 6243b7f commit d5f07ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/wallaby/experimental/selenium/webdriver_client.ex
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ defmodule Wallaby.Experimental.Selenium.WebdriverClient do
@doc """
Takes a screenshot.
"""
@spec take_screenshot(Session.t) :: binary
@spec take_screenshot(Session.t | Element.t) :: binary
def take_screenshot(session) do
with {:ok, resp} <- request(:get, "#{session.session_url}/screenshot"),
{:ok, value} <- Map.fetch(resp, "value"),
Expand Down

0 comments on commit d5f07ac

Please sign in to comment.