每次运行命令时APP都要重启,这样运行时间就会很长appium-v1.4.16.1相关代码desired_caps = {}
desired_caps['platformName'] = 'Android'desired_caps['platformVersion'] = '6.0'desired_caps['deviceName'] = 'Android Emulator'desired_caps['appPackage'] = 'com.eg.android.AlipayGphone'desired_caps['appActivity'] = 'com.eg.android.AlipayGphone.AlipayLogin'desired_caps['noReset'] = True#desired_caps['autoLaunch'] = False 加上这句会报错
driver = webdriver.Remote('http://localhost:4723/wd/hub', desired_caps)
print('1')
driver.find_element_by_id('com.alipay.android.phone.openplatform:id/collect_layout').click()有办法在app已经运行的情况下,找到控件直接执行点击命令吗?
添加回答
举报
0/150
提交
取消