Package io.appium.java_client
Interface PullsFiles
-
- All Superinterfaces:
ExecutesMethod
- All Known Implementing Classes:
AndroidDriver
,IOSDriver
,WindowsDriver
public interface PullsFiles extends ExecutesMethod
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default byte[]
pullFile(java.lang.String remotePath)
Pull a file from the remote system.default byte[]
pullFolder(java.lang.String remotePath)
Pull a folder content from the remote system.-
Methods inherited from interface io.appium.java_client.ExecutesMethod
execute, execute
-
-
-
-
Method Detail
-
pullFile
default byte[] pullFile(java.lang.String remotePath)
Pull a file from the remote system. On Android the application under test should be built with debuggable flag enabled in order to get access to its container on the internal file system.- Parameters:
remotePath
- If the path starts with @applicationId// prefix, then the file will be pulled from the root of the corresponding application container. Otherwise, the root folder is considered as / on Android and on iOS it is a media folder root (real devices only).- Returns:
- A byte array of Base64 encoded data.
-
pullFolder
default byte[] pullFolder(java.lang.String remotePath)
Pull a folder content from the remote system. On Android the application under test should be built with debuggable flag enabled in order to get access to its container on the internal file system.- Parameters:
remotePath
- If the path starts with @applicationId/ prefix, then the folder will be pulled from the root of the corresponding application container. Otherwise, the root folder is considered as / on Android and on iOS it is a media folder root (real devices only).- Returns:
- A byte array of Base64 encoded zip archive data.
-
-