Sha256: 88eb4a318e24a06046d48b5ccaec454457cb03091b3b803f0267a8f6c3143a97
Contents?: true
Size: 964 Bytes
Versions: 4
Compression:
Stored size: 964 Bytes
Contents
package com.amplify.honeydew_server.actions; import com.android.uiautomator.core.UiDevice; import com.android.uiautomator.core.UiObjectNotFoundException; import com.amplify.honeydew_server.Action; import com.amplify.honeydew_server.Result; import org.apache.commons.io.FileUtils; import java.io.File; import java.io.IOException; import java.util.Map; public class DumpWindowHierarchy extends Action { public DumpWindowHierarchy(UiDevice uiDevice) { super(uiDevice); } @Override public Result execute(Map<String, Object> arguments) throws UiObjectNotFoundException { try { FileUtils.forceMkdir(new File("/data/local/tmp/local/tmp/")); } catch (IOException e) { return new Result("Create directory failed", e); } uiDevice.dumpWindowHierarchy("honeydew_server-window-hierarchy"); return new Result(true, "/data/local/tmp/local/tmp/honeydew_server-window-hierarchy"); } }
Version data entries
4 entries across 4 versions & 1 rubygems