driver.PushFile for ios does not work, It gives org.openqa.selenium.WebDriverException: Method has not yet been implemented


#1

io.appium:java-client: 5.0.4
appium-xcuitest-driver : 2.78.0


#2

Is your driver an instance of AppiumDriver or IOSDriver?

Maybe you are using WebDriver driver instance instead of AppiumDriver


#3

Hello,

My driver is an instance of IOSDriver, basically I have it as

Blockquote
((IOSDriver) driver).pushFile(remotePath, file);

The driver I am using is AppiumDriver
Definitely not a webdriver.

Have you tried to use pushFile for iOS ?


#4

It works for iOS simulator only.

Check Jonhathan edition about it:


#5

Thank you :slight_smile:
Really appreciated your help


#6

Hi @Telmo_Cardoso
I’m following this link for android: https://appiumpro.com/editions/2

but while tying to add my project it not working, showing error at .puhsFile method, I have tied by casting AppiumDriver also, please have a look the screenshot


#7

@Telmo_Cardoso could you please help me ?


#8

I’m not working with Appium currently. But from what I remembered pushFile belongs to AndroidDriver. You sure your driver var is an instance of AndroidDriver?

Also you can follow Jonathan code in github (https://github.com/cloudgrey-io/appiumpro/blob/master/java/src/test/java/Edition002_Android_Photos.java)