Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

io.appium.uiautomator2.common.exceptions.NoSuchDriverException

オープン
#2,156 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 5 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
android, java
領域
mobile, testing

調査の方向性

指定された Java client、Appium server、Windows および Android 環境で、提供された Java reproduction をまず実行します。セッションがなぜ認識されなくなったのかを判断するため、リンクされた両方の Appium logs を調査します。再現可能な原因を特定し、修正変更または 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時間
マージ済み PR(30日)
8

環境構築

  • Dockerfile・Docker Compose ファイルなし
  • プルリクエストのテンプレートあり
  • コントリビューションガイドなし

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

appium/java-client のほかの issue

appium/java-client の issue をすべて見る

似ている issue

Java の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。