Package io.appium.java_client
Interface PullsFiles
-
- All Superinterfaces:
CanRememberExtensionPresence
,ExecutesMethod
- All Known Implementing Classes:
AndroidDriver
,FlutterAndroidDriver
,FlutterIOSDriver
,IOSDriver
,WindowsDriver
public interface PullsFiles extends ExecutesMethod, CanRememberExtensionPresence
-
-
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.CanRememberExtensionPresence
assertExtensionExists, markExtensionAbsence
-
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
- Path to file to read data from the remote device. Check the documentation on `mobile: pullFile` extension for more details on possible values for different platforms.- 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
- Path to a folder to read data from the remote device. Check the documentation on `mobile: pullFolder` extension for more details on possible values for different platforms.- Returns:
- A byte array of Base64 encoded zip archive data.
-
-