Skip to content

Got ViewNotFound exception occasionally #226

Description

@toliuweijing

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="...")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects are currently unavailable

    Please try again later

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions