python+appium出现selenium.common.exceptions.WebDriverException: Message: Method has not yet been implemented错误解决方法

一、问题

使用driver.close()遇到报错selenium.common.exceptions.WebDriverException: Message: Method has not yet been implemented

二、分析原因

1 等待时间问题:会不会因为APP还没打开完成就已经执行了关闭导致关闭失败,因此加长了时间,发现还是未解决。
2 在网上查找,大多数都说是因为appium sever的版本和Appium-Python-Client 的版本不一致,需要更改;检查之后发现版本是一致的。
3 查找了资料发现,driver.close()是关闭当前页面,driver.close_app()是关闭当前APP,因此我认为driver.close()应该适用于selenium,而appium应该使用的是driver.close_app()。之后改成close_app(),运行成功。

二、解决方法

将close()改为close_app()

python+appium出现selenium.common.exceptions.WebDriverException: Message: Method has not yet been imple相关推荐

  1. Jenkins部署Python报错 - selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executabl

    说明:该文属于 Python全栈白宝书专栏,免费阶段订阅数量4300+,购买任意白宝书体系化专栏可加入TFS-CLUB 私域社区. 福利:除了通过订阅"白宝书系列专栏"加入社区获取 ...

  2. selenium.common.exceptions.WebDriverException: Message: ‘chromedriver’解决

    selenium.common.exceptions.WebDriverException: Message: 'chromedriver'解决: https://blog.csdn.net/weix ...

  3. 【Python】处理 selenium.common.exceptions.WebDriverException 报错问题

    安装selenium的话,使用pip即可:pip install selenium 但是安装成功后运行会报错:selenium.common.exceptions.WebDriverException ...

  4. 已解决selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

    已解决selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary ...

  5. 【解决报错问题:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occurr】

    运行Appium报错: selenium.common.exceptions.WebDriverException: Message: An unknown server-side error occ ...

  6. 报错解决:selenium.common.exceptions.WebDriverException: Message: An unknown server-side error

    报错代码 from appium import webdriver from selenium.webdriver.support.ui import WebDriverWaitdesired_cap ...

  7. selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilitie

    selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilitie ...

  8. selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executable needs to bein PATH

    使用Selenium模拟浏览器访问淘宝首页,出现报警 from selenium import webdriver import timebrowser = webdriver.Chrome() br ...

  9. selenium.common.exceptions.WebDriverException: Message: unable to set

    本人使用的版本是 python3.7 selenium3.14.1 macOS10.13.3 另外是在谷歌浏览器做的实验 下面看代码: 我想要添加一个name为MUSIC_U的cookie,运行后出现 ...

  10. WebDriverException( selenium.common.exceptions.WebDriverException: Message: ‘chromedriver‘ executabl

    WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executabl ...

最新文章

  1. 学习超大神经网络,CPU超越V100 GPU,靠的居然是哈希?
  2. SQLServer 实现rownum 的功能
  3. 信息学奥赛C++语言: 开关灯1
  4. Silverlight在IE中无法显示但在Firefox中正常的原因和解决办法
  5. JavaScript的Array对象使用(1)
  6. UnityShader27:屏幕雾效
  7. 服务器监控之 ping 监控
  8. Atitit 深入理解软件的本质 attilax总结 软件三原则三次原则是DRY原则和YAGNI原则的折
  9. 链栈的基本操作和实现
  10. 如何在CSDN中免费下载资料
  11. 基于线程池实现多线程任务
  12. 【DP专题】——洛谷P5144蜈蚣
  13. 安装win10 ltsc应用商店
  14. 人类第一位女教授的传奇一生
  15. 腾讯云服务器的简单使用
  16. Cannot GET / 错误解决
  17. 手机怎么模拟125k卡_手把手教你用手机NFC秒变门禁卡,这个方法多种手机都可以适用...
  18. Loadrunder脚本篇——文件下载
  19. 通过自适应UM(非锐化掩膜)算法进行图像增强(Image Enhancement via Adaptive Unsharp Masking)
  20. 代码下载python 简体和繁体的转换

热门文章

  1. 腾讯视频qlv格式转换成mp4格式的的简单方法!
  2. 教你如何做好移动支付行业
  3. Unicode和GB2312编码表
  4. 同一操作系统中安装多个不同版本谷歌Chrome浏览器
  5. 8、乐趣国学—“不迁怒,不贰过”
  6. 论文写作中插入公式间距变大怎么办?
  7. 51单片机引脚内部电路
  8. 平面向量内积坐标公式推导_平面向量内积的坐标运算与距离公式
  9. 主流前端框架下ArcGIS API for JavaScript的开发
  10. MBBR 物联网大数据监控系统