io.appium.uiautomator2.common.exceptions.NoSuchDriverException
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
首先使用指定的 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 模板
- 没有贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
appium/java-client 的其他 Issue
-
难度 5/5 一周以上 新手友好度 25/100
appium/java-client#2426 ·
维护者通常 1 天内回复
-
bug
难度 4/5 3-5 天 新手友好度 50/100
appium/java-client#2372 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 30/100
appium/java-client#2368 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 30/100
appium/java-client#2341 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 5/5 一周以上 新手友好度 15/100
appium/java-client#2323 ·
维护者通常 1 天内回复
查看 appium/java-client 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 88/100
checkstyle/checkstyle#21755 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
agentic-workflows
难度 2/5 1-3 小时 新手友好度 68/100
github/copilot-sdk#2782 ·
维护者通常 1 天内回复
-
documentation Good for newcomer quick win
难度 2/5 1-3 小时 新手友好度 68/100
CodeForPhilly/benefit-decision-toolkit#519 ·
维护者通常 1 天内回复
-
area-deployment triage:bot-seen triage:needs-human
难度 2/5 1-3 小时 新手友好度 68/100
microsoft/aspire#20533 · 1 条评论 ·
维护者通常 1 天内回复