首页 > 其他分享 >关于使用appium自动化启动app时报错【问题:AttributeError: ‘NoneType‘ object has no attribute ‘to_capabilities‘】的解决方案

关于使用appium自动化启动app时报错【问题:AttributeError: ‘NoneType‘ object has no attribute ‘to_capabilities‘】的解决方案

时间:2023-12-13 11:59:44浏览次数:31  
标签:appium no attribute object selenium capabilities

报错原因:

  安装了最新版的appium3.0.0和selenium的最新版本,导致版本冲突从而导致报错:AttributeError: 'NoneType' object has no attribute 'to_capabilities'

解决方案:

  卸载selenium和appium,下载低版本的appium【下载appium的同时会下载依赖selenium】

 

 pip install appium-python-client==2.0 -i https://pypi.tuna.tsinghua.edu.cn/simple

 

标签:appium,no,attribute,object,selenium,capabilities
From: https://www.cnblogs.com/lyljx/p/17898740.html

相关文章

  • Object---clone方法
     概述java.lang.Object#clone Byconvention,thereturnedobjectshouldbeobtainedbycalling{@codesuper.clone}.Ifaclassandallofitssuperclasses(except{@codeObject})obeythisconvention,itwillbethecasethat{@codex.clone().getClass()=......
  • AttributeError: 'NoneType' object has no attribute 'replace'
    在python中执行Js代码,引入execjs库,python代码如下:执行结果如下:在导入execjs模块前,让Popen的encoding参数锁定为utf-8。importsubprocessfromfunctoolsimportpartialsubprocess.Popen=partial(subprocess.Popen,encoding="utf-8") ......
  • selenium运行时的ValueError: Timeout value connect was <object object at 0x000001
    fromseleniumimportwebdriverdriver=webdriver.Chrome()driver.get("https://www.baidu.com/")运行时出现ValueError:Timeoutvalueconnectwas<objectobjectat0x000001FE483C4170>错误大概率原因是:selenium和urllib3库的版本冲突导致修改版本为:selenium=3.1......
  • _pickle.PicklingError: Can't pickle <class '__main__.aaa'>: attribute lookup aa
    注:其中aaa是我的类名。这个问题是我想保存一个自定义的类对象时,采用如下代码pickle模块保存时出现的报错信息。withopen(f'saved_agent_{seed}.pkl','wb')asfile:pickle.dump(agent,file)出错原因该错误通常出现在试图使用pickle模块保存自定义类对象,而这个类定义......
  • 论文笔记: Attributed Graph Clustering: A Deep Attentional Embedding Approach
    论文笔记:AttributedGraphClustering:ADeepAttentionalEmbeddingApproach中文名称:属性图聚类:一种深度注意力嵌入方法论文链接:https://arxiv.org/abs/1906.06532背景:​ 图聚类是发现网络中的社区或群体的一项基本任务。最近的研究主要集中在开发深度学习方......
  • js Object常用的方法
    Object.keys(obj)Object.keys(obj):返回对象自身所有可枚举属性的键名数组处理对象,返回可枚举的键数组constobject1={a:'somestring',b:42,c:false};console.log(Object.keys(object1));//结果:Array["a","b","c"]处理数组和字符串,返回索引值数组......
  • 掌握C#:深入理解特性(Attributes)与反射(Reflection)的妙用
    文章目录特性Attribute预定义特性AttributeUsageConditional(常用)Obsolete常用Attribute自定义特性声明自定义特性构建自定义特性应用自定义特性反射Reflection反射优缺点反射(Reflection)的用途查看元数据实例特性AttributeC#中的特性(Attributes)是一种用于在声......
  • Failed to configure a DataSource: ‘url‘ attribute is not specified and no embe
    FailedtoconfigureaDataSource:'url'attributeisnotspecifiedandnoembeddeddatasourcecouldbeconfigured.Reason:FailedtodetermineasuitabledriverclassAction:Considerthefollowing:Ifyouwantanembeddeddatabase(H2,......
  • 使用Harmony检测Unity.Object的隐式转换
    简介Unity是一个非常优秀的引擎,但其中有些设计在提供方便的同时也埋下了隐患,比如BroadcastMessage以及UnityEngine.Object中的隐式转换。本文通过使用Harmony注入C#代码,达到检测隐式转换的效果,提供了替换Unity引擎C#代码的思路。HarmonyHarmony-alibraryforpatching,re......
  • UE蓝图类型转换object引用
    一.常用的记住1.角色之间,获取玩家角色,玩家控制器2.动画蓝图,获取玩家动画3.在游戏模式中记录变量,方便类型转换。但是会影响运行速度4.playerstate优先与gamemode可以使用二.对象发生关系1.重叠对象,触发,打击,引出引脚actor2.getallactor寻找,(getwigdet控件也可以这样找),......