Closed tody-yang closed 3 months ago
我看了下healthcheck()函数好像是弃用的了,那我注释掉之后,就很容易报错 if res.status_code == 502:
raise GatewayError(
res, "gateway error, time used %.1fs" % (time.time() - request_start)) E uiautomator2.exceptions.GatewayError: (<Response [502]>, 'gateway error, time used 0.4s') 我该怎么修改,或者说有什么新方法替代healthcheck()
对的以及移除,可以用 d.start_uiautomator()代替
代码:
def buildup_dev(serial_no):