Search code examples
androidappium

Push a file to my Android device in Appium


Hello StackOverflow community,

I'm trying to write Appium tests for my Android device. Now I need to transfer an image file to my Android device (in order to upload it in a form). However, when using the pushFile() command from the AppiumDriver class I get the following error:

> error: Could not proxy command to remote server. Original error: 404 - unknown command: session/f4f13b14a94c0d39d575ff326ebea6c1/appium/device/push_file

Now, after searching the internet I found that this is just another alias for "It has not yet been implemented". Isn't there another way to push a file? Or a way to push a file manually? By doing a raw adb command for instance?

Thanks in advance for the help!


Solution

  • I had to update to Appium 1.5. Appium 1.4 doesn't support it apparently.