Test Ma 2023-05-09 23:30 采纳率: 0%
浏览 145
已结题

appium报错,元素定位没有问题,也加了等待时间了

appium 执行代码报错,元素定位都试过了,还是报这个错误,有没有解决得办法呀,一经采用,会给报酬
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurred while processing the command. Original error: io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: Timed out after 15518ms waiting for the root AccessibilityNodeInfo in the active window. Make sure the active window is not constantly hogging the main UI thread (e.g. the application is being idle long enough), so the accessibility manager could do its work
Stacktrace:
io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: io.appium.uiautomator2.common.exceptions.UiAutomator2Exception: Timed out after 15518ms waiting for the root AccessibilityNodeInfo in the active window. Make sure the active window is not constantly hogging the main UI thread (e.g. the application is being idle long enough), so the accessibility manager could do its work

img

  • 写回答

5条回答 默认 最新

  • 阳光宅男xxb 2023-05-10 07:34
    关注

    appium报错,元素定位的问题,要不就是你的xpath获取其它代码的调用方式有问题,要不就是为appium和微信版本的问题。
    解决方法就是,建议往这两个方面进行检查。检查元素的定位,增加等待时间,降低微信的版本等

    评论 编辑记录

报告相同问题?

问题事件

  • 已结题 (查看结题原因) 5月11日
  • 创建了问题 5月9日

悬赏问题

  • ¥20 python忆阻器数字识别
  • ¥15 无法输出helloworld
  • ¥15 高通uboot 打印ubi init err 22
  • ¥20 PDF元数据中的XMP媒体管理属性
  • ¥15 R语言中lasso回归报错
  • ¥15 网站突然不能访问了,上午还好好的
  • ¥15 有没有dl可以帮弄”我去图书馆”秒选道具和积分
  • ¥15 semrush,SEO,内嵌网站,api
  • ¥15 Stata:为什么reghdfe后的因变量没有被发现识别啊
  • ¥15 振荡电路,ADS仿真