首页 > 解决方案 > 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"))````



标签: androidgifanimated-gif

解决方案


推荐阅读