org.openqa.selenium.WebDriverException: Returned value cannot be converted to List<String>: {stacktrace=NoSuchDriverError: A session is either terminated or not started
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 20/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện lỗi thông qua entry point init_driver và kiểm tra phản hồi POST /session trong các log Appium được cung cấp. So sánh các Java capabilities với lỗi phiên W3C được báo cáo; để hoàn tất, cần xác nhận nguyên nhân và một phiên trình duyệt khởi chạy thành công.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Do I have the most recent component updates?
- I use the most recent available driver/plugin and server versions
Is the component officially supported by the Appium team?
- I have verified the component repository is present under the Appium organization in GitHub
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
i am getting below error when i am below code
org.openqa.selenium.WebDriverException: Returned value cannot be converted to List: {stacktrace=NoSuchDriverError: A session is either terminated or not started
<dependency>
<groupId>io.appium</groupId>
<artifactId>java-client</artifactId>
<version>9.0.0</version>
</dependency>
Expected Behavior
browser should launch
Minimal Reproducible Example
public static RemoteWebDriver driver;
public static AndroidDriver androidDriver;
public Properties props;
public ChromeOptions chrOpts = new ChromeOptions();
public static RemoteWebDriver init_driver(String runType, String broswerType, String Url) throws MalformedURLException, InterruptedException
{
try {
switch(runType)
{
case "mobile":
UiAutomator2Options options = new UiAutomator2Options();
options.setDeviceName("Galaxy Note10 Lite");
options.setUdid("RF8N81RNYLH");
options.setPlatformVersion("10");
options.setAutomationName(AutomationName.ANDROID_UIAUTOMATOR2);//Optional
options.setPlatformName("Android");//Optional
options.setCapability("browserName", broswerType);
options.setCapability("browserVersion", "119");
options.setCapability("appium:noReset", true);
options.setNewCommandTimeout(Duration.ofSeconds(30));
options.setNoReset(true);
androidDriver=new AndroidDriver(new URL("http://127.0.0.1:4723"), options);
androidDriver.get(Url);
System.out.println(androidDriver.getContextHandles());
androidDriver.findElement(By.id("details-button")).click();
androidDriver.findElement(By.id("proceed-link")).click();
Thread.sleep(1500);
androidDriver.get("http://localhost:8123");
androidDriver.manage().timeouts().implicitlyWait(Duration.ofSeconds(30));
driver = androidDriver;
break;
Environment
- Operating system:
- Appium server version (output of
appium --version): - Appium driver(s) and their version(s):
- Appium plugin(s) and their version(s):
- Node.js version (output of
node --version): npmversion (output ofnpm --version):- Last component(s) version which did not exhibit the problem:
- Platform and version under test:
- Real device or emulator/simulator:
Link to Appium Logs
TTP] {"desiredCapabilities":{"appium:noReset":true,"appium:udid":"RF8N81RNYLH","appium:newCommandTimeout":30,"browserVersion":"119","browserName":"chrome","appium:deviceName":"Galaxy Note10 Lite","platformName":"Android","appium:automationName":"UIAutomator2","appium:platformVersion":"10"}}
[AppiumDriver@52ce] Calling AppiumDriver.createSession() with args: [{"appium:noReset":true,"appium:udid":"RF8N81RNYLH","appium:newCommandTimeout":30,"browserVersion":"119","browserName":"chrome","appium:deviceName":"Galaxy Note10 Lite","platformName":"Android","appium:automationName":"UIAutomator2","appium:platformVersion":"10"},null,null]
[AppiumDriver@52ce] Event 'newSessionRequested' logged at 1698834879654 (16:04:39 GMT+0530 (India Standard Time))
[AppiumDriver@52ce] Encountered internal error running command: SessionNotCreatedError: A new session could not be created. Details: Session capabilities format must comply to the W3C standard. Make sure your client is up to date. See https://www.w3.org/TR/webdriver/#new-session for more details.
[AppiumDriver@52ce] at makeNonW3cCapsError (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\lib\utils.js:31:10)
[AppiumDriver@52ce] at AppiumDriver.createSession (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\lib\appium.js:260:32)
[AppiumDriver@52ce] at commandExecutor (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules@appium\base-driver\lib\basedriver\driver.ts:107:18)
[AppiumDriver@52ce] at AppiumDriver.executeCommand (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules@appium\base-driver\lib\basedriver\driver.ts:124:15)
[AppiumDriver@52ce] at processTicksAndRejections (node:internal/process/task_queues:95:5)
[AppiumDriver@52ce] at defaultBehavior (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\lib\appium.js:718:16)
[AppiumDriver@52ce] at AppiumDriver.executeWrappedCommand (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\lib\appium.js:828:16)
[AppiumDriver@52ce] at AppiumDriver.executeCommand (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\lib\appium.js:734:17)
[AppiumDriver@52ce] at asyncHandler (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules@appium\base-driver\lib\protocol\protocol.js:393:19)
[HTTP] <-- POST /session 500 57 ms - 1720
[HTTP]
[HTTP] --> POST /session/null/url
[HTTP] {"url":"https://10.17.108.155:8132"}
[AppiumDriver@52ce] Encountered internal error running command: NoSuchDriverError: A session is either terminated or not started
[AppiumDriver@52ce] at asyncHandler (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules@appium\base-driver\lib\protocol\protocol.js:315:15)
[AppiumDriver@52ce] at C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules@appium\base-driver\lib\protocol\protocol.js:518:15
[AppiumDriver@52ce] at Layer.handle [as handle_request] (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\layer.js:95:5)
[AppiumDriver@52ce] at next (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\route.js:144:13)
[AppiumDriver@52ce] at Route.dispatch (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\route.js:114:3)
[AppiumDriver@52ce] at Layer.handle [as handle_request] (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\layer.js:95:5)
[AppiumDriver@52ce] at C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\index.js:284:15
[AppiumDriver@52ce] at param (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\index.js:365:14)
[AppiumDriver@52ce] at param (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\index.js:376:14)
[AppiumDriver@52ce] at Function.process_params (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\index.js:421:3)
[AppiumDriver@52ce] at next (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\index.js:280:10)
[AppiumDriver@52ce] at logger (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\morgan\index.js:144:5)
[AppiumDriver@52ce] at Layer.handle [as handle_request] (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\layer.js:95:5)
[AppiumDriver@52ce] at trim_prefix (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\index.js:328:13)
[AppiumDriver@52ce] at C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\index.js:286:9
[AppiumDriver@52ce] at Function.process_params (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\index.js:346:12)
[AppiumDriver@52ce] at next (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\express\lib\router\index.js:280:10)
[AppiumDriver@52ce] at C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\body-parser\lib\read.js:137:5
[AppiumDriver@52ce] at AsyncResource.runInAsyncScope (node:async_hooks:203:9)
[AppiumDriver@52ce] at invokeCallback (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\raw-body\index.js:238:16)
[AppiumDriver@52ce] at done (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\raw-body\index.js:227:7)
[AppiumDriver@52ce] at IncomingMessage.onEnd (C:\Users\lakshmanans\AppData\Roaming\npm\node_modules\appium\node_modules\raw-body\index.js:287:7)
[AppiumDriver@52ce] at IncomingMessage.emit (node:events:514:28)
[AppiumDriver@52ce] at endReadableNT (node:internal/streams/readable:1359:12)
[AppiumDriver@52ce] at processTicksAndRejections (node:internal/process/task_queues:82:21)
[HTTP] <-- POST /session/null/url 404 29 ms - 3404
Further Information
No response
- Ngôn ngữ chính
- Java
- Star
- 1.3k
- Fork
- 755
- Merge trung bình
- 5 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của appium/java-client
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
appium/java-client#2426 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
appium/java-client#2372 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 30/100
appium/java-client#2368 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 30/100
appium/java-client#2341 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
appium/java-client#2323 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của appium/java-client
Issue tương tự
-
P2 testing
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
Maintainer thường phản hồi trong vòng 1 ngày
-
area/core kind/bug status/triage team/core-shared
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
checkstyle/checkstyle#21755 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
spring-projects/spring-integration#11495 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
Maintainer thường phản hồi trong vòng 1 ngày