Open wazzeps opened 11 months ago
pushFile(String remotePath, File file) method from PushesFiles interface saves the file if a file with the same name already exists on the device.
According to the XCUITest driver documentation, if the file with the same name already exists then it will be silently overridden.
private final String filePath = "src/test/resources/files/photo.png"; private final String fileName = "photo.png"; try { File file = new File(filePath); ((PushesFiles) driver).pushFile(fileName, file); }
@wazzeps try it on the real device or other simulator
Description
pushFile(String remotePath, File file) method from PushesFiles interface saves the file if a file with the same name already exists on the device.
According to the XCUITest driver documentation, if the file with the same name already exists then it will be silently overridden.
Environment
Code To Reproduce Issue [ Good To Have ]