SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 20/100
- Issue 类型
- 缺陷
- 描述清晰度
- 需要澄清
- 活跃度
- 停滞
- 领域
- mobile, testing-qa
调研方向
从 LoginDomainTest.kt 第 38 行的复现程序以及所列出的 Appium client、server、Node、Android Studio 和设备版本开始。结合 connection-refused 堆栈跟踪和本地 Appium server 设置,检查已配置的 remote URL。完成的标准是确定一个可复现的客户端或设置缺陷,并记录已验证的原因。
由索引模型根据 Issue 内容生成。
描述
Description
Hi everyone,
i'm getting 'SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Host info: host: 'localhost', ip: '127.0.0.1' cuando quiero conectarme al servidor de appium local desde android studio(kotlin).
Environment
Below is my Environment:
Mac OS: Ventura 13.4
Android Studio: 2022.1.1
Appium.io : 8.5.1
Appium server: 2.0.0-beta.71
node: v20.3.0
device: Android Samsung A235M
Code To Reproduce Issue
`@get:Rule
val activityScenarioRule = ActivityScenarioRule(LaunchActivity::class.java)
private lateinit var driver: AndroidDriver
@Before
@Throws(MalformedURLException::class)
fun setUp() {
val desiredCapabilities = DesiredCapabilities()
desiredCapabilities.setCapability(MobileCapabilityType.DEVICE_NAME, "samsung SM-A235M")
desiredCapabilities.setCapability(MobileCapabilityType.PLATFORM_VERSION, "13")
desiredCapabilities.setCapability(MobileCapabilityType.PLATFORM_NAME, "android")
desiredCapabilities.setCapability(MobileCapabilityType.AUTOMATION_NAME, "appium")
//desiredCapabilities.setCapability(MobileCapabilityType.BROWSER_NAME, "Chrome")
val remoteUrl = URL("http://127.0.0.1:4723")
driver = AndroidDriver(remoteUrl, desiredCapabilities)
}
@After
fun tearDown() {
driver?.quit()
}
@Test
fun testButtonNavigationToBrowser() {
onView(withId(R.id.single_single_on_btn)).perform(click())
Thread.sleep(7000)
val inputField = driver?.let {
it.findElement(By.cssSelector("input[name='domain']"))
}
inputField?.let { it.sendKeys("fulcrum") }
}`
Link To Appium Logs
'
org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Possible causes are invalid address of the remote server or browser start-up failure.
Host info: host: 'localhost', ip: '127.0.0.1'
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:561)
at io.appium.java_client.AppiumDriver.startSession(AppiumDriver.java:274)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:157)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:89)
at io.appium.java_client.AppiumDriver.(AppiumDriver.java:101)
at io.appium.java_client.android.AndroidDriver.(AndroidDriver.java:113)
at com.spatialnetworks.fulcrum.app.LoginDomainTest.setUp(LoginDomainTest.kt:38)
... 33 trimmed
Caused by: org.openqa.selenium.WebDriverException: Connection refused
Build info: version: '4.9.1', revision: 'eb2032df7f'
System info: os.name: 'Linux', os.arch: 'aarch64', os.version: '4.19.157-perf-25521380-abA235MUBU1BVL1', java.version: '0'
Driver info: driver.version: AndroidDriver
at io.appium.java_client.remote.AppiumCommandExecutor.lambda$execute$4(AppiumCommandExecutor.java:262)
at io.appium.java_client.remote.AppiumCommandExecutor$$ExternalSyntheticLambda3.get(Unknown Source:2)
at java.util.Optional.orElseGet(Optional.java:365)
at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:261)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
... 40 more
Caused by: java.net.ConnectException: Connection refused
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:762)
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337)
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776)
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724)
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650)
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562)
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997)
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
at java.lang.Thread.run(Thread.java:1012)'
- 主要语言
- 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 小时 新手友好度 78/100
OpenAPITools/openapi-generator#25014 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
AloisSeckar/demos-java#380 ·
-
bug
难度 2/5 1-3 小时 新手友好度 78/100
openhab/openhab-core#5847 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 88/100
appsmithorg/appsmith#42297 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100