def __start_driver(self, aport, bpport):
"""
??logcat?appium????
:return:
"""
if platform.system() == 'Windows':
# ?win10??appium?bug,??????
import subprocess
subprocess.Popen("appium -p %s -bp %s -U %s" %
(aport, bpport, self.device), shell=True)
else:
appium = U.cmd("appium -p %s -bp %s -U %s" %
(aport, bpport, self.device)) # ??appium
while True:
appium_line = appium.stdout.readline().strip()
U.Logging.debug(appium_line)
U.sleep(1)
if 'listener started' in appium_line or 'Error: listen' in appium_line:
break
评论列表
文章目录