다음은 <iPhone SDK 튜토리얼 2> p443에서 언급된 UIAElement의 모든 엘리먼트를 표시하는 Javascript 코드이다.
// List element hierarchy for the Recipes screen UIALogger.logStart("Logging element tree …"); UIATarget.localTarget().logElementTree(); UIALogger.logPass();
화면의 특정 영역을 터치하도록 하고 싶으면 단순하게 아래와 같은 자동화 코드를 사용하면 된다.
UIATarget.localTarget().tap({x:100, y:200});
Recent Comments