File tree 2 files changed +17
-0
lines changed
2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change 1
1
[caps]
2
2
platformName = "ios"
3
+ deviceName ="iPhone Simulator"
3
4
app = "./UICatalog.app"
4
5
5
6
[appium_lib]
Original file line number Diff line number Diff line change @@ -93,6 +93,14 @@ module Device
93
93
# pull_file 'Shenanigans.app/some/file' #=> Get 'some/file' from the install location of Shenanigans.app
94
94
# ```
95
95
96
+ # @!method pull_folder
97
+ # Retrieve a folder from the device.
98
+ # @param path (String) absolute path to the folder
99
+ #
100
+ # ```ruby
101
+ # pull_folder '/data/local/tmp' #=> Get the folder at that path
102
+ # ```
103
+
96
104
# @!method end_coverage
97
105
# Android only; Ends the test coverage and writes the results to the given path on device.
98
106
# @param path (String) Path on the device to write too.
@@ -215,6 +223,14 @@ def pull_file(path)
215
223
end
216
224
end
217
225
226
+ # TODO TEST ME
227
+ add_endpoint_method ( :pull_folder , 'session/:session_id/appium/device/pull_folder' ) do
228
+ def pull_folder ( path )
229
+ data = execute :pull_folder , { } , path : path
230
+ Base64 . decode64 data
231
+ end
232
+ end
233
+
218
234
# TODO TEST ME
219
235
add_endpoint_method ( :end_coverage , 'session/:session_id/appium/app/end_test_coverage' ) do
220
236
def end_coverage ( path , intent )
You can’t perform that action at this time.
0 commit comments