1
UIASCRIPT :모바일 사파리에서 사이트의 화면을 캡처하기 위해 계측기를 사용할 수 있습니까?
var result = UIATarget.localTarget().host().performTaskWithPathArgumentsTimeout("/usr/bin/open", ["/Applications/Safari.app", "http://www.google.com"], 30);
UIATarget.captureScreenWithName('test.png');
명령 행 :
instruments -t /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Library/Instruments/PlugIns/AutomationInstrument.bundle/Contents/Resources/Automation.tracetemplate Safari.app -e UIASCRIPT cap.js
내 접근 방식에있어 문제점은 무엇입니까? 감사!