Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Got ViewNotFound exception occasionally #226

Open
toliuweijing opened this issue Aug 22, 2017 · 1 comment
Open

Got ViewNotFound exception occasionally #226

toliuweijing opened this issue Aug 22, 2017 · 1 comment

Comments

@toliuweijing
Copy link

toliuweijing commented Aug 22, 2017

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="...")
@dtmilano
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants