I pushed image to my iOS-simulator using this command:
((PushesFiles) driver).pushFile(remotePath, file);
and it works, but i want to delete this file after my test, so i just tried to use this:
driver.executeScript(“mobile: deleteFile”, ImmutableMap.of(“remotePath”, remotePath));
as remotePath i put “qrcode.png” like in pushFile(), but i have error:
org.openqa.selenium.InvalidArgumentException: The remote path at ‘/Users/vagrant/Library/Developer/CoreSimulator/Devices/6472F5A9-AAE3-4961-81C7-F2648A40289F/data/qrcode.png’ does not exist
where is the path of file and how i can delete it?