Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

io.appium.uiautomator2.common.exceptions.NoSuchDriverException

未关闭
#2,156 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
android, java
领域
mobile, testing

调研方向

首先使用指定的 Java client、Appium server、Windows 和 Android 环境运行所提供的 Java reproduction。检查链接的两个 Appium logs,以确定为什么 session 不再被识别;完成的标准是找出一个可复现的原因,并验证一项修复性更改或 regression coverage,尽管 payload 没有列出任何 repository 文件或 tests。

由索引模型根据 Issue 内容生成。

描述

Description

Yesterday it is working fine. But today I am getting error message

org.openqa.selenium.NoSuchSessionException: The session identified by 29d06f45-a489-44de-a010-dfa411eb8d3e is not known
Build info: version: '4.19.1', revision: 'abe0ee07dc'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '15.0.2'

Environment

  • Java client build version : 9.2.1
  • Appium server version: 2.3.0
  • Desktop OS/version used to run Appium: Windows 10
  • Node.js version : v18.18.0
  • Mobile platform/version under test: Android
  • Real device or emulator/simulator: Moto Edge 30

Code To Reproduce Issue [ Good To Have ]

public class AppTest {
    @AndroidFindBy(accessibility = "open menu")
    private WebElement webElementOpenMenu;

    @Test
    public void demaoTest() {
        AppiumDriverLocalService appiumDriverLocalService = null;
        AppiumDriver appiumDriver = null;
        try {
            appiumDriverLocalService = AppiumDriverLocalService.buildService(new AppiumServiceBuilder()
                    .withIPAddress("127.0.0.1")
                    .usingPort(4723)
                    .withArgument(GeneralServerFlag.RELAXED_SECURITY)
                    .withArgument(GeneralServerFlag.SESSION_OVERRIDE)
                    .withArgument(GeneralServerFlag.USE_DRIVERS, "uiautomator2")
                    .withArgument(GeneralServerFlag.BASEPATH, "/wd/hub/")
                    .withArgument(GeneralServerFlag.LOG_LEVEL, "info:debug")
                    .withTimeout(Duration.ofSeconds(180)));
            appiumDriverLocalService.start();

            UiAutomator2Options uiAutomator2Options = new UiAutomator2Options()
                    .setAutomationName(AutomationName.ANDROID_UIAUTOMATOR2)
                    .setApp(System.getProperty("user.dir" + File.separator + "app" + File.separator + "android" + File.separator + "Android-MyDemoAppRN.1.3.0.build-244.apk"))
                    .setFullReset(false)
                    .setNoReset(true)
                    .setPlatformName("android")
                    .setPlatformVersion("13")
                    .setUdid("ZD222CJSXB")
                    .setAppPackage("com.saucelabs.mydemoapp.rn")
                    .setAppActivity("com.saucelabs.mydemoapp.rn.MainActivity");

            appiumDriver = new AndroidDriver(appiumDriverLocalService.getUrl(), uiAutomator2Options);
            PageFactory.initElements(new AppiumFieldDecorator(appiumDriver, Duration.ofSeconds(30)), this);

            webElementOpenMenu.click();
        } finally {
            appiumDriver.quit();
            appiumDriverLocalService.stop();
        }
    }
}

Link To Appium Logs

Please find the complete log:
https://gist.github.com/dipakkumar1225/0d5ddc800282375d9cb77b6468d62af1

Log for the above attached sample code:
https://gist.github.com/dipakkumar1225/5401087916d0cbb83b6f1ed9c3b31638

主要语言
Java
星标
1.3k
派生
755
平均合并
5 天 14 小时
30 天内合并 PR
8

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 有 Pull Request 模板
  • 没有贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

appium/java-client 的其他 Issue

查看 appium/java-client 的全部 Issue

相似的 Issue

更多 Java Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。