io.appium.java_client.NoSuchContextException: An unknown server-side error occurred while processing the command. Original error: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded
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
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- java
- Lĩnh vực
- mobile, testing-qa
Hướng nghiên cứu
Bắt đầu với phương thức switchToWebViewContext và log Appium được liên kết, sau đó xem xét môi trường được báo cáo gồm Java client 2.34.1, Appium 2.2.2, Android 13 và UIAutomator2. Nếu có thể, hãy tái hiện việc chuyển đổi context và xác định liệu Java client có lỗi có thể xử lý hay không; công việc được xem là hoàn tất khi đã ghi lại một vấn đề của client được xác nhận bằng một test tập trung hoặc xác định được component upstream chịu trách nhiệm.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
Now able to switch to WebView.
Environment
- Java client build version or git revision if you use some snapshot: 2.34.1
- Appium server version or git revision if you use some snapshot: 2.2.2
- Desktop OS/version used to run Appium if necessary: Windows 10
- Node.js version (unless using Appium.app|exe) or Appium CLI or Appium.app|exe: v18.18.0
- Mobile platform/version under test: Android 13
- Real device or emulator/simulator: Real Device : Moto Edge 30
Code To Reproduce Issue
protected void switchToWebViewContext() {
String strWebContextName = ((AndroidDriver)getAppiumDriver()).getContextHandles().stream().filter(ctx -> ctx.contains("WEBVIEW_")).findAny().orElse(null);
System.out.println("strWebContextName " + strWebContextName);
if (Objects.nonNull(strWebContextName)) {
((AndroidDriver) getAppiumDriver()).context(strWebContextName);
System.out.println("Switched to Web view ");
}
}
here I am able to get webview context name strWebContextName WEBVIEW_com.xxxxx.xxxxxxx
Exception Stacktraces
io.appium.java_client.NoSuchContextException: An unknown server-side error occurred while processing the command. Original error: An unknown server-side error occurred while processing the command. Original error: Could not proxy command to the remote server. Original error: timeout of 240000ms exceeded
Build info: version: '4.15.0', revision: '1d14b5521b'
System info: os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '15.0.2'
Driver info: io.appium.java_client.android.AndroidDriver
Command: [bddfd85a-6e5e-46c2-842e-1b8371fc128a, switchToContext {name=WEBVIEW_com.xxxx.xxxxuat}]
Capabilities {appium:app: D:\MobiWebAutoFramework\mob..., appium:appActivity: com.xxxx.xxxx.activity..., appium:appPackage: com.xxxx.xxxxuat, appium:autoGrantPermissions: true, appium:autoLaunch: false, appium:automationName: UIAutomator2, appium:chromedriverExecutable: D:\chromedriver-win32\chrom..., appium:chromedriverPort: 10002, appium:clearDeviceLogsOnStart: true, appium:clearSystemFiles: true, appium:databaseEnabled: false, appium:desired: {app: D:\MobiWebAutoFramework\mob..., appActivity: com.xxxx.xxxx.activity..., appPackage: com.xxxx.xxxxuat, autoGrantPermissions: true, autoLaunch: false, automationName: UIAutomator2, chromedriverExecutable: D:\chromedriver-win32\chrom..., chromedriverPort: 10002, clearDeviceLogsOnStart: true, clearSystemFiles: true, ensureWebviewsHavePages: true, fullReset: false, ignoreHiddenApiPolicyError: true, mjpegServerPort: 62920, nativeWebScreenshot: true, newCommandTimeout: 240, noReset: true, platformName: ANDROID, platformVersion: 13, shouldTerminateApp: true, showChromedriverLog: true, systemPort: 10001, udid: ZD222CJSXB, webviewDevtoolsPort: 10901}, appium:deviceApiLevel: 33, appium:deviceManufacturer: motorola, appium:deviceModel: motorola edge 30, appium:deviceName: ZD222CJSXB, appium:deviceScreenDensity: 400, appium:deviceScreenSize: 1080x2400, appium:deviceUDID: ZD222CJSXB, appium:ensureWebviewsHavePages: true, appium:fullReset: false, appium:ignoreHiddenApiPolicyError: true, appium:javascriptEnabled: true, appium:locationContextEnabled: false, appium:mjpegServerPort: 62920, appium:nativeWebScreenshot: true, appium:networkConnectionEnabled: true, appium:newCommandTimeout: 240, appium:noReset: true, appium:pixelRatio: 2.5, appium:platformVersion: 13, appium:shouldTerminateApp: true, appium:showChromedriverLog: true, appium:statBarHeight: 105, appium:systemPort: 10001, appium:takesScreenshot: true, appium:udid: ZD222CJSXB, appium:viewportRect: {height: 2130, left: 0, top: 105, width: 1080}, appium:warnings: {}, appium:webStorageEnabled: false, appium:webviewDevtoolsPort: 10901, platformName: ANDROID}
Session ID: bddfd85a-6e5e-46c2-842e-1b8371fc128a
Link To Appium Logs
https://gist.github.com/dipakkumar1225/e83e2a3c0b2c63a10db070fb489141ff#file-webcontext
- Ngôn ngữ chính
- Java
- Star
- 1.3k
- Fork
- 752
- Merge trung bình
- 5 ngày 14 giờ
- Pull request đã merge (30 ngày)
- 8
Chuẩn bị môi trường
Chúng tôi chưa kiểm tra các tệp thiết lập môi trường của dự án này. Hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
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ự
-
and-bugs and-ui gpx-track
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
Maintainer thường phản hồi trong vòng 2 ngày
-
TerminalRow.mSpaceUsed (short) overflows on terminals wider than 1023 columns, crashing setCharĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
termux/termux-app#5340 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
OpenAICompatibleToolDescriptorSchemaGenerator drops requiredProperties of nested object parametersĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 7 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
apache/rocketmq-dashboard#5110 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
frontend
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
No-Country-simulation/S08-26-equipo04#210 ·
Maintainer thường phản hồi trong vòng 1 ngày