Appium ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接
有可能是因为time.sleep()时间过长,超过6s导致
可以尝试使用driver.implicitly_wait() 进行登录,或者使用WebDriverWait()
WebDriverWait(driver, 10).until(lambda x: x.find_element_by_xpath('//*[@text="我知道了"]'))
探讨AppiumConnectionAbortedError错误原因,可能是time.sleep()时间过长导致连接中断。介绍使用driver.implicitly_wait()和WebDriverWait()作为解决方案,确保自动化测试流程稳定。
Appium ConnectionAbortedError: [WinError 10053] 你的主机中的软件中止了一个已建立的连接
有可能是因为time.sleep()时间过长,超过6s导致
可以尝试使用driver.implicitly_wait() 进行登录,或者使用WebDriverWait()
WebDriverWait(driver, 10).until(lambda x: x.find_element_by_xpath('//*[@text="我知道了"]'))
3642
6188
659

被折叠的 条评论
为什么被折叠?