Skip to content Skip to sidebar Skip to footer

Waiting For A Specific View On Androidviewclient

I am using androidviewclient from dtmilano and it works great. I need to know how do I wait for a specific view to appear on the screen and then take an action ? I am using getand

Solution 1:

The simplest way would be:

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

Post a Comment for "Waiting For A Specific View On Androidviewclient"