如何才能让python不自动关闭app
运行python自动程序,测试模拟器上的app。原意是在打开的界面上,验证界面元素的功能呢,但无论怎么设置参数,一旦运行到webdriver.Remote之后,app就会...
运行python自动程序,测试模拟器上的app。原意是在打开的界面上,验证界面元素的功能呢,但无论怎么设置参数,一旦运行到webdriver.Remote之后,app就会自动被关闭,无法继续进行后面的测试。请教高手,如何破解,谢谢! python部分代码如下
desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '6.0'
desired_caps['deviceName'] = 'HUAWEI VTR-AL00'
desired_caps['appPackage'] = 'com.tydic.phone.tray'
desired_caps['appActivity'] = '.activity.HomeActivity'
desired_caps['noReset'] = 'True'
desired_caps['autoLaunch'] = 'False'
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) 展开
desired_caps = {}
desired_caps['platformName'] = 'Android'
desired_caps['platformVersion'] = '6.0'
desired_caps['deviceName'] = 'HUAWEI VTR-AL00'
desired_caps['appPackage'] = 'com.tydic.phone.tray'
desired_caps['appActivity'] = '.activity.HomeActivity'
desired_caps['noReset'] = 'True'
desired_caps['autoLaunch'] = 'False'
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps) 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询