程序运行2个月都没问题,突然报错,这突如其来的血压飙升`
报错代码如下:

NoSuchElementException                    Traceback (most recent call last)
<ipython-input-5-71fe1159ea05> in <module>162     #需要更改,改为吉利车的出价时间163     elif get_date('/hierarchy/android.widget.FrameLayout/cn.bingoogolapple.swipebacklayout.BGASwipeBackLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.LinearLayout[2]/androidx.viewpager.widget.ViewPager/android.widget.FrameLayout/android.view.ViewGroup/android.view.ViewGroup/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout[1]/android.widget.LinearLayout/android.widget.RelativeLayout[4]/android.widget.TextView[2]') == stop_date:
--> 164         crawl_page1(1,0)165         crawl_page2(0)166     #第二辆吉利的标题<ipython-input-5-71fe1159ea05> in crawl_page1(in_order, out_order)31     datalist[out_order].append(title.text)32     #中标价格
---> 33     element = driver.find_element_by_xpath('/hierarchy/android.widget.FrameLayout/cn.bingoogolapple.swipebacklayout.BGASwipeBackLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.RelativeLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.LinearLayout[2]/androidx.viewpager.widget.ViewPager/android.widget.FrameLayout/android.view.ViewGroup/android.view.ViewGroup/androidx.recyclerview.widget.RecyclerView/android.widget.FrameLayout['+str(in_order)+']/android.widget.LinearLayout/android.view.ViewGroup/android.widget.LinearLayout[1]/android.widget.RelativeLayout[2]/android.widget.TextView[3]')34     datalist[out_order].append(element.text)35     #出价时间

整个爬虫项目有xpath的地方几乎全部都是
NoSuchElementException: Message: An element could not be located on the page using the given search parameters.
因为我是直接用appium进行元素解析的,xpath都很长很长,也没有仔细比对错误的和调整后的差别,个人猜测是由于app升级造成xpath的轻微改变。
解决方式:重新获取xpath,就搞定了。

Appium工作日记:Message: An element could not be located on the page using the given search parameters.相关推荐

  1. An element could not be located on the page using the given search parameters.

    Appium中[MJSONWP]错误 Appium自动化测试错误提示An element could not be located on the page using the given search ...

  2. Python +appium 报错:NoSuchElementException: Message: An element could not be located on the page using

    报错代码: NoSuchElementException: Message: An element could not be located on the page using the given s ...

  3. Appium学习日记(一)——Appium工作原理及其主要组件

    Appium工作原理及其主要组件 Appium的工作原理(how Appium works)   Appium的核心是一个服务器,它侦听符合API规范WebDriver的传入HTTP请求.对于那些过去 ...

  4. selenium.common.exceptions.StaleElementReferenceException: Message: stale element reference: element

    在输入框输入内容,点击[查询],然后点击页面上的[处理],并进行点击时,报错,报错内容如下. selenium.common.exceptions.StaleElementReferenceExcep ...

  5. 电信宽带服务器维护,电信网络维护部工作日记

    以下是无忧考网为大家整理的关于电信网络维护部工作日记的文章,希望大家能够喜欢! 6月22日 晴 期待已久的实习终于在今天开始了,由于沟通上的原因,崇明电信这边的工作人员晚了两天通知我去实习.我也迫不及 ...

  6. haimianjie工作日记:2023年6月

    只有坚持复盘,哪些吹过的牛逼方能完成 1.历史文章 我的工作日记:2023年3月 再见2022,你好2023:八年程序媛老兵的践行.思考与展望 我的工作日记:2023年4月 我的工作日记:2023年5 ...

  7. 工作日记 day01

    今天是我入职的第一天,我决定从今天开始写一写工作日记,记录一下日常,方便以后的学习和工作,希望我可以坚持下去,如果各位大佬比较闲还可以监督我! 早上七点五十上班,上午来了之后比较闲,人事小姐姐让填了入 ...

  8. 写作小课堂:用日记提升写作能力(三类内容非常值得写:工作日记、读书心得和特殊的经历。)

    文章目录 前言 I 第一类:工作日记 1.1 亚历山大·贝尔和格雷关于发明权的争议 II 第二类:读书的心得和收获 III 第三类:对特殊经历的感受,特别是失败的经历 IV 日记怎么写 4.1 首先, ...

  9. 速卖通描述 html,产品详细描述编写技巧-速卖通工作日记3

    产品详细描述编写技巧-速卖通工作日记3 本文发表于2014年3月,现在看来这篇文章还是实用的. 在16号的时候出单我的速卖通第一笔订单,虽然金额不大但是对自己是一个非常大的鼓励.这两天一直在研究产品的 ...

最新文章

  1. Codeforces.487C.Prefix Product Sequence(构造)
  2. 使用Spring进行统一日志管理 + 统一异常管理
  3. 小米扫地机器人 自动关机_小米扫地机器人1S 真的好用吗?
  4. ACTIVEMQ 发布与订阅
  5. mac connect to host localhost port 22: Connection refused
  6. 1056 Mice and Rice (25 分)【难度: 一般 / 知识点: 模拟】
  7. 雷辉:让视频会议conferencing like TV
  8. 求以下double数组的平均值(四舍五入保留两位小数):
  9. 打开Excel文件时出现提示:“向Excel发送命令时出现错误”解决方案
  10. 对Session、Cookie的完全理解
  11. SpringCloud+Redis
  12. 安卓马赛克view_Android马赛克效果MosaicView
  13. php java session共享_PHP实现多服务器session共享之NFS共享
  14. Android Framework 全面分析 FallbackHome
  15. Atitit 软件体系重要理论学科 v2 s67.docx Atitit 软件重要理论学科 目录 1. 计算理论这门学问 2 1.1. 学科的产生 2 1.2. 在这些领域中,自动机理论和形式语言理论
  16. python代码扫描工具_Python脚本实现Web漏洞扫描工具
  17. MotoSimEG-VRC软件:安川机器人弧焊焊接离线编程与虚拟仿真
  18. 9针串口的RS232、RS485、RS422引脚定义
  19. sublime出现中文乱码
  20. CCI: Representing N cents

热门文章

  1. Windows 10 (64位)下 VMware 15虚拟机下载及安装教程(内附安装包)
  2. win10安装mongoDB
  3. 不知道文字识别工具有哪些?来看看这几个好用的软件
  4. 利用Python进行粗糙的视频字幕识别
  5. Log4j2 JDBCAppender的使用
  6. 医疗检查报告和影像资料,扫二维码就能查看!
  7. matlab中最好用的滤波函数,谁有matlab滤波器设计实例,想找个参考,最好是hamming窗,低通 fir滤波器。...
  8. 数字图像处理实验之伽马变换
  9. Nginx源码安装及调优配置(二)
  10. 拓嘉辰丰:拼多多运营方法和技巧