Skip to content

Commit b05c07e

Browse files
Fix screenshot return value
1 parent 9c601c1 commit b05c07e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/appium_lib/driver.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -409,9 +409,10 @@ def driver
409409
# Example: screenshot '/tmp/hi.png'
410410
#
411411
# @param png_save_path [String] the full path to save the png
412-
# @return [void]
412+
# @return [nil]
413413
def screenshot png_save_path
414414
@driver.save_screenshot png_save_path
415+
nil
415416
end
416417

417418
# Quits the driver
@@ -552,4 +553,4 @@ def x
552553
# Paging in Pry is annoying :q required to exit.
553554
# With pager disabled, the output is similar to IRB
554555
# Only set if Pry is defined.
555-
Pry.config.pager = false if defined?(Pry)
556+
Pry.config.pager = false if defined?(Pry)

0 commit comments

Comments
 (0)