pushFile method is not seen in options
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.3k
- Forks
- 752
- Avg merge
- 6d 21h
- Merged PRs (30d)
- 8
Description
Description
Trying to access driver.pushFile and it is not available when I try n type.
Is it particular to the appium java client version? I downloaded 7.3.0.
I have both Appium servers - 1.15.1 and 1.4.16.1.
Need help.
Environment
- Java client build version or git revision if you use some snapshot: 7.3.0
- Appium server version or git revision if you use some snapshot: 1.15.1 and 1.4.16.1
- Desktop OS/version used to run Appium if necessary: Windows 10
- Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: 8.12.0
- Mobile platform/version under test: Android 6.0.1
- Real device or emulator/simulator: Real device - Panasonic
Details
I am using Eclipse as my IDE. I added java client to my build path.
created driver instance as below:
DesiredCapabilities caps = new DesiredCapabilities();
caps.setCapability("skipUnlock", "true");
caps.setCapability("appPackage", "com.fedex.mobile.pnd.pndapp");
caps.setCapability("appActivity", "com.fedex.mobile.pnd.view.login.LoginActivity");
caps.setCapability("noReset", "false");
caps.setCapability("deviceName", "FZN1");
caps.setCapability("platformName", "Android");
caps.setCapability("platformVersion", "6.0");
caps.setCapability("udid", GetDevice.execGetDeviceID());
driver = new AndroidDriver(new URL("http://127.0.0.1:4723/wd/hub"), caps);
When I try to type driver.pushFile("/path/to/device/foo.bar", new File("/Users/johndoe/files/foo.bar"));
pushFile mehtod is not showing up.
But pullFile method is available.
Automation to be done: I need to push a file into the folder in the Device's internal memory.
Code To Reproduce Issue [ Good To Have ]
I opened appium server -> Advanved -> selected Relaxed Security.
Exception Stacktraces
No Exception, not run, this is while writing the code itself.
Link To Appium Logs
NA
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by checking the Java client 7.3.0 AndroidDriver API and how its available methods compare with pullFile. Reproduce the compile-time method lookup using the driver declaration shown in the issue; done means determining whether pushFile should be exposed and documenting or correcting the supported way to push a file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, java
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100