diff --git a/examples/helper/culebra/culebra-start-activity.gif b/examples/helper/culebra/culebra-start-activity.gif new file mode 100644 index 00000000..970d24cd Binary files /dev/null and b/examples/helper/culebra/culebra-start-activity.gif differ diff --git a/examples/helper/culebra/ulebra-start-activity.py b/examples/helper/culebra/ulebra-start-activity.py new file mode 100755 index 00000000..30c3bc3b --- /dev/null +++ b/examples/helper/culebra/ulebra-start-activity.py @@ -0,0 +1,39 @@ +#! /usr/bin/env python3 +# -*- coding: utf-8 -*- +""" +Copyright (C) 2013-2022 Diego Torres Milano +Created on 2023-09-03 by Culebra v22.6.0 + __ __ __ __ + / \ / \ / \ / \ +____________________/ __\/ __\/ __\/ __\_____________________________ +___________________/ /__/ /__/ /__/ /________________________________ + | / \ / \ / \ / \ \___ + |/ \_/ \_/ \_/ \ o \ + \_____/--< +@author: Diego Torres Milano +@author: Jennifer E. Swofford (ascii art snake) +""" + + +import os +import re +import sys +import time + +from com.dtmilano.android.viewclient import ViewClient, KEY_EVENT + + +TAG = 'CULEBRA' +_s = 5 +_v = '--verbose' in sys.argv +pid = os.getpid() + + +kwargs1 = {'verbose': False, 'ignoresecuredevice': False, 'ignoreversioncheck': False} +device, serialno = ViewClient.connectToDeviceOrExit(**kwargs1) + +kwargs2 = {'forceviewserveruse': False, 'startviewserver': True, 'autodump': False, 'ignoreuiautomatorkilled': True, 'compresseddump': True, 'useuiautomatorhelper': True, 'debug': {}} +vc = ViewClient(device, serialno, **kwargs2) + +helper = vc.uiAutomatorHelper +helper.target_context.start_activity('com.google.android.calculator', 'com.android.calculator2.Calculator')