当前位置:网站首页>[appium stepping pit] io appium. uiautomator2. common. exceptions. InvalidArgumentException: ‘capabilities‘ are mand
[appium stepping pit] io appium. uiautomator2. common. exceptions. InvalidArgumentException: ‘capabilities‘ are mand
2022-06-26 03:38:00 【Qinghe tester】
2022 Years. , The probability of this problem is basically 0.
Take notes .
Question why & solve
1、 reason
Local installation Appium desktop v 1.13 edition (06 May 2019)
start-up server After that, it will report a mistake :
[W3C] Encountered internal error running command: A new session could not be created. Details: io.appium.uiautomator2.common.exceptions.InvalidArgumentException: 'capabilities' are mandatory for session creation
Appium issue There is a discussion on this issue in
Developers suggest upgrading to the latest version at that time beta edition ->
1.14.0-beta.1 (05 Jul 2019)
Just in line with our local situation , The problem is basically v1.13 And previous versions .
2、 solve
upgrade appium edition .
1.14.0-beta.1 (05 Jul 2019) It's too old ,
Upgrade directly to the latest appium Version can .
Appium release
Detailed error report
[W3C] Encountered internal error running command: A new session could not be created. Details: io.appium.uiautomator2.common.exceptions.InvalidArgumentException: 'capabilities' are mandatory for session creation
[W3C] io.appium.uiautomator2.common.exceptions.SessionNotCreatedException: io.appium.uiautomator2.common.exceptions.InvalidArgumentException: 'capabilities' are mandatory for session creation
[W3C] at io.appium.uiautomator2.handler.NewSession.safeHandle(NewSession.java:59)
[W3C] at io.appium.uiautomator2.handler.request.SafeRequestHandler.handle(SafeRequestHandler.java:38)
[W3C] at io.appium.uiautomator2.server.AppiumServlet.handleRequest(AppiumServlet.java:252)
[W3C] at io.appium.uiautomator2.server.AppiumServlet.handleHttpRequest(AppiumServlet.java:242)
[W3C] at io.appium.uiautomator2.http.ServerHandler.channelRead(ServerHandler.java:44)
[W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[W3C] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[W3C] at io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:102)
[W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[W3C] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[W3C] at io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelRead(CombinedChannelDuplexHandler.java:435)
[W3C] at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:293)
[W3C] at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:267)
[W3C] at io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:250)
[W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[W3C] at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:345)
[W3C] at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1294)
[W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:366)
[W3C] at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:352)
[W3C] at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:911)
[W3C] at io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:131)
[W3C] at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:611)
[W3C] at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:552)
[W3C] at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:466)
[W3C] at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:438)
[W3C] at io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:140)
[W3C] at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
[W3C] at java.lang.Thread.run(Thread.java:923)
[W3C] Caused by: io.appium.uiautomator2.common.exceptions.InvalidArgumentException: 'capabilities' are mandatory for session creation
[W3C] at io.appium.uiautomator2.handler.NewSession.safeHandle(NewSession.java:47)
[W3C] ... 30 more
[W3C]
[HTTP] <-- POST /wd/hub/session 500 6459 ms - 3708
边栏推荐
- 解析创客空间机制建设的多样化
- 360 秒了解 SmartX 超融合基础设施
- QT compilation error: unknown module (s) in qt: script
- Hardware creation principle of campus maker space
- MySQL增删查改(初阶)
- 解析少儿编程的多元评价体系
- Qt编译出错ERROR: Unknown module(s) in QT: script
- 解决uniapp插件robin-editor设置字体颜色和背景颜色报错的问题
- [paper notes] supersizing self supervision: learning to grasp from 50K tries and 700 robot hours
- 个人用同花顺软件买股票安全吗?怎么炒股买股票呢
猜你喜欢

丝网印刷的种类及其应用方法

Redux thunk simple case, advantages, disadvantages and thinking

Qt 中 deleteLater 使用总结

Multimedia elements, audio, video

Inkscape如何将png图片转换为svg图片并且不失真

双碳红利+基建大年 | 图扑深耕水利水电绿色智能装备领域

Google recommends using kotlin flow in MVVM architecture

Drawing structure diagram with idea

Drag and drop

用元分析法驱动教育机器人的发展
随机推荐
Wealth freedom skills: commercialize yourself
Todolist incomplete, completed
Literature reading --- optimize RNA SEQ research to study herbicide resistance (review)
Clion项目中运行多个main函数
Worm copy construction operator overload
Utonmos adheres to the principle of "collection and copyright" to help the high-quality development of traditional culture
培育项目式Steam教育理念下的儿童创造力
Gradient
js array数组json去重
MySQL stored procedure
General operations of asynctask
MySQL数据库基础
Digital twin intelligent water service, breaking through the development dilemma of sponge City
【论文笔记】Manufacturing Control in Job Shop Environments with Reinforcement Learning
Classic model – RESNET
经典模型——NiN&GoogLeNet
Butterknife unbinder uses flashback in fragment and viewpager
Is the compass app regular? Is it safe or not
Problems encountered in project deployment - production environment
[paper notes] supersizing self supervision: learning to grasp from 50K tries and 700 robot hours