android - How I can download the animated gif / animated overlay from Mobile (Android /iOS ) native app to my project location?
问题描述
I tried below code , but it is just downloading blank file with gif extension.
MobileElement image1 = (MobileElement)driver.findElementByXPath(XpathOfelement);
byte[] imageinbyte = image1.getId().getBytes();
ByteArrayInputStream bis = new ByteArrayInputStream(imageinbyte);
BufferedImage bImage2 = ImageIO.read(bis);
ImageIO.write(bImage2, "gif", new File("File Location"))````
解决方案
推荐阅读
- r - 在 R 中读取电子邮件附件 .xls
- wireshark - 未针对重传数据包解析有效负载文本(数据字段)?
- docker - ElasticSearch 容器不会在 Docker 中启动
- angular - Angular 6:HttpClient 获取 JSON 文件 404 错误
- r - 如何使用正则表达式从 R 中的字符串中删除 ன 等特殊字符
- ios - 快速引用数组的通用变量
- powershell - Solr 7.3.1 不会启动“SSL_PORT_PROP”此时出乎意料
- python - 解析电子邮件正文
- php - 通过 PHP 从 URL 读取我是否被 PWNED JSON 值
- redux - 如果发生令牌刷新,则重新启动 API 请求队列