2014-09-08 8 views

답변

2

가장 간단한 방법은 다음과 같습니다

... 
while True: 
    vc.dump() 
    if vc.findViewWithText('Hello World!'): 
     # do something 
     pass 
    else: 
     time.sleep(5) 
+0

com.dtmilano.android.viewclient.ViewNotFoundException : 루트 = ROOT의 I 트리에서 'ID/next_button으로 com.login'ID = 함께보기를 찾을 수 없습니다 이 오류가 발생합니다. 해결할 겁니까? –

+0

그리고 findViewWithText()뿐만 아니라 vc.findViewWithText()가되어야합니다. vc.findViewByIdOrRaise()를 사용했지만 –

+0

발견되지 않으면 예외를 발생 시키려면 예외를 발생시킵니다. 그런 경우에는 'try/except'를 사용할 수 있습니다. –

관련 문제