【发布时间】:2021-01-03 15:44:28
【问题描述】:
String imagePath = this.getClass().getResource("/files/images.jpg").getPath();
driver.pushFile("/data/local/tmp/image.jpg", new File(imagePath));
此代码在模拟器和真实设备上运行良好,但不适用于 AWS 的设备场
【问题讨论】:
-
1.您是否尝试在 iOS 或 Android 上执行此操作? 2.真机root了吗?
-
在 Android 上且未植根
-
工作代码是什么样的?我面临同样的问题,但图像路径也无法在 aws 上找到,但在本地完美运行