【问题标题】:while running selendroid code showing this error....Exception in thread "main" org.openqa.selenium.SessionNotCreatedException在运行显示此错误的 selendroid 代码时......线程“主”org.openqa.selenium.SessionNotCreatedException 中的异常
【发布时间】:2014-12-11 16:27:41
【问题描述】:

线程“main”中的异常 org.openqa.selenium.SessionNotCreatedException:请求的被测应用程序未在 selendroid 服务器中配置。 io.selendroid.exceptions.SessionNotCreatedException:请求的被测应用程序未在 selendroid 服务器中配置。 在 io.selendroid.server.model.SelendroidStandaloneDriver.createNewTestSession(SelendroidStandaloneDriver.java:205) 在 io.selendroid.server.handler.CreateSessionHandler.handle(CreateSessionHandler.java:42) 在 io.selendroid.server.SelendroidServlet.handleRequest(SelendroidServlet.java:143) 在 io.selendroid.server.BaseServlet.handleHttpRequest(BaseServlet.java:67) 在 io.selendroid.server.http.ServerHandler.channelRead(ServerHandler.java:50) 在 io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) 在 io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) 在 io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:103) 在 io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) 在 io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) 在 io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) 在 io.netty.channel.CombinedChannelDuplexHandler.channelRead(CombinedChannelDuplexHandler.java:148) 在 io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) 在 io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) 在 io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) 在 io.netty.channel.nio.AbstractNioByteChannel$NioByteUnsafe.read(AbstractNioByteChannel.java:125) 在 io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:511) 在 io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized (NioEventLoop.java:468) 在 io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:382) 在 io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:354) 在 io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) 在 io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) 在 java.lang.Thread.run(Thread.java:745)

【问题讨论】:

    标签: android


    【解决方案1】:

    1.运行java -jar selendroid-standalone-0.14.0-with-dependencies.jar -aut your_apk.apk

    2.打开selendroid status URLhttp://localhost:4444/wd/hub/status,找到你的appID。

    3.使用此应用程序ID在您的设备上安装应用程序

    SelendroidCapabilities 能力 = 新 SelendroidCapabilities("io.selendroid.testapp:0.8.0");

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-06-30
      • 1970-01-01
      • 1970-01-01
      • 2015-10-11
      • 2018-12-09
      相关资源
      最近更新 更多