StartAppium.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:Auto_Analysis 作者: ztwo 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号