INNER CODE UNIT · Python
_create_hdriver
codematrixer/hmdriver2 · hmdriver2/_client.py:161
def _create_hdriver(self) -> DriverData:
logger.debug("Create uitest driver")
resp: HypiumResponse = self.invoke("Driver.create") # {"result":"Driver#0"}
hdriver: DriverData = DriverData(resp.result)
return hdriver
class _UITestService:
def __init__(self, hdc: HdcWrapper):
"""Initialize the UITestService class."""
self.hdc = hdc
def init(self):
"""
Initialize the UITest service:
1. Ensure agent.so is set up on the device.
2. Start the UITest daemon.