Skip to content

Commit f8af2e3

Browse files
committed
append a test of push file
1 parent 442e787 commit f8af2e3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/appium_lib_core/common/base/driver.rb

+3
Original file line numberDiff line numberDiff line change
@@ -281,6 +281,9 @@ def replace_value(element, *value)
281281
#
282282
# @driver.push_file "/file/to/path", "data"
283283
#
284+
# file = File.read "your/path/to/test_image.png"
285+
# @driver.push_file "/sdcard/Pictures", file # Push a file binary to /sdcard/Pictures path in Android
286+
#
284287
def push_file(path, filedata)
285288
@bridge.push_file(path, filedata)
286289
end

0 commit comments

Comments
 (0)