脚本启动appium

作者: 一木之夏 | 来源:发表于2017-09-04 20:18 被阅读56次

import subprocess

def start_appium():

# 先杀掉appium的进程

subprocess.Popen('taskkill /im node.exe /t /f',shell=True)

time.sleep(1)

appium_log=os.path.join(APP_HOME,'log')+os.sep+'appium.log'

subprocess.Popen('appium -g %s'%appium_log,shell=True)

time.sleep(3)

相关文章

网友评论

    本文标题:脚本启动appium

    本文链接:https://www.haomeiwen.com/subject/segejxtx.html