[<appium.webdriver.webelement.WebElement (session="5a990a51-03d5-4774-a643-7879a9aed280", element="3781218e-f35b-469b-b622-ba178f3da8f2")>, <appium.webdriver.webelement.WebElement (session="5a990a51-03d5-4774-a643-7879a9aed280", element="eeee1f09-9fc8-430f-b6e3-ed84f232e55a")>, <appium.webdriver.webelement.WebElement (session="5a990a51-03d5-4774-a643-7879a9aed280", element="7f398684-8fe6-4d70-b6d7-1686924d6997")>, <appium.webdriver.webelement.WebElement (session="5a990a51-03d5-4774-a643-7879a9aed280", element="aed95fe1-be68-4edd-8e15-c2d9b23be5cd")>, <appium.webdriver.webelement.WebElement (session="5a990a51-03d5-4774-a643-7879a9aed280", element="c93fa000-2be9-4dbf-b66f-7cc8a3c94e60")>, <appium.webdriver.webelement.WebElement (session="5a990a51-03d5-4774-a643-7879a9aed280", element="68890ec4-89bc-405e-8d9e-d7f13b266596")>, <appium.webdriver.webelement.WebElement (session="5a990a51-03d5-4774-a643-7879a9aed280", element="1647e33b-8dd3-437b-b3fb-f9ea4229f6a5")>, <appium.webdriver.webelement.WebElement (session="5a990a51-03d5-4774-a643-7879a9aed280", element="65404946-e04f-416f-8bf4-f63b4d50024b")>, <appium.webdriver.webelement.WebElement (session="5a990a51-03d5-4774-a643-7879a9aed280", element="0b18142e-262b-4691-836f-69fb3d1a080a")>]
Traceback (most recent call last):
File "D:/Appium/find_element/kyb_register.py", line 9, in <module>
images[5].click()
File "D:\Program Files (x86)\Python\lib\site-packages\selenium\webdriver\remote\webelement.py", line 80, in click
self._execute(Command.CLICK_ELEMENT)
File "D:\Program Files (x86)\Python\lib\site-packages\selenium\webdriver\remote\webelement.py", line 633, in _execute
return self._parent.execute(command, params)
File "D:\Program Files (x86)\Python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "D:\Program Files (x86)\Python\lib\site-packages\appium\webdriver\errorhandler.py", line 29, in check_response
raise wde
File "D:\Program Files (x86)\Python\lib\site-packages\appium\webdriver\errorhandler.py", line 24, in check_response
super(MobileErrorHandler, self).check_response(response)
File "D:\Program Files (x86)\Python\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.StaleElementReferenceException: Message: io.appium.uiautomator2.common.exceptions.StaleElementReferenceException: The element 'By.clazz: android.widget.LinearLayout' does not exist in DOM anymore
at io.appium.uiautomator2.model.KnownElements.getElementFromCache(KnownElements.java:88)
at io.appium.uiautomator2.handler.Click.safeHandle(Click.java:35)
at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:37)
at io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)
at io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:243)
at io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
at io.netty.channel.CombinedChannelDuplexHandlerHeadContext.channelRead(DefaultChannelPipeline.java:1294)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
at io.netty.channel.nio.AbstractNioByteChannel2.run(SingleThreadEventExecutor.java:140)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
at java.lang.Thread.run(Thread.java:764)
脚本运行时出现io.appium.uiautomator2.common.exceptions.StaleElementReferenceException: The element 'By.c...
©著作权归作者所有,转载或内容合作请联系作者
- 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
- 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
- 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
推荐阅读更多精彩内容
- windows7 + Appium + 夜游安卓模拟器 + Python 像Selenium可以操控Web浏览器,...