Package io.appium.java_client
Interface PushesFiles
-
- All Superinterfaces:
CanRememberExtensionPresence,ExecutesMethod
- All Known Implementing Classes:
AndroidDriver,FlutterAndroidDriver,FlutterIOSDriver,IOSDriver,WindowsDriver
public interface PushesFiles extends ExecutesMethod, CanRememberExtensionPresence
-
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidpushFile(java.lang.String remotePath, byte[] base64Data)Saves base64-encoded data as a file on the remote system.default voidpushFile(java.lang.String remotePath, java.io.File file)Sends the file to the remote device.-
Methods inherited from interface io.appium.java_client.CanRememberExtensionPresence
assertExtensionExists, markExtensionAbsence
-
Methods inherited from interface io.appium.java_client.ExecutesMethod
execute, execute
-
-
-
-
Method Detail
-
pushFile
default void pushFile(java.lang.String remotePath, byte[] base64Data)Saves base64-encoded data as a file on the remote system.- Parameters:
remotePath- Path to file to write data to on remote device. Check the documentation on `mobile: pushFile` extension for more details on possible values for different platforms.base64Data- Base64 encoded byte array of media file data to write to remote device
-
pushFile
default void pushFile(java.lang.String remotePath, java.io.File file) throws java.io.IOExceptionSends the file to the remote device.- Parameters:
remotePath- See the documentation onpushFile(String, byte[])file- Is an existing local file to be written to the remote device- Throws:
java.io.IOException- when there are problems with a file on current file system
-
-