Ask for help: python-appium, restarts APP every time it runs

APP restarts every time a command is run, so it takes a long time to run

appium-v1.4.16.1

related codes

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
-sharpdesired_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()

is there a way to find the control to execute the click command directly when app is already running?

Mar.29,2021

enable noReset , not no reset , see http://appium.io/docs/en/writ.

Menu