AndroidViewClient icon indicating copy to clipboard operation
AndroidViewClient copied to clipboard

Got ViewNotFound exception occasionally

Open toliuweijing opened this issue 8 years ago • 1 comments

The following code keeps raising ViewNotFound exceptions from time to time(about 40% of time). I wonder if I have missed something in my setup. Notice useuiautomatorhelper=True because my test depends on viewclient.pressBack() method.

Anyhelp of the potential cause or how to debug? Thanks!

device, serialno = ViewClient.connectToDeviceOrExit()
viewClient = ViewClient(device, serialno, useuiautomatorhelper=True)
viewClient.findViewByIdOrRaise(viewId="...")

toliuweijing avatar Aug 22 '17 08:08 toliuweijing

useuiautomatorhelper=True is intended for tests that run using UiAutomatorHelper backend which is provided by culebra.dtmilano.com.

Do you have this application installed on your device?

dtmilano avatar Aug 23 '17 04:08 dtmilano