Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

io.appium.uiautomator2.common.exceptions.NoSuchDriverException

未關閉
#2,156 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 5 天內回覆

還沒有人認領這個 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 摘要。