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()
相关分类