在Browserstack云以及本地android设备上自动化android应用时出现问题。
Appium error: An unknown server-side error occurred while processing the command
Issue : org.openqa.selenium.WebDriverException: Appium error: An unknown server-side error occurred while processing the command. (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 0 milliseconds
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
System info: host: '00165', ip: '132.0.0.0', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '1.8.0_191'
Driver info: io.appium.java_client.android.AndroidDriver
Capabilities {64bit: false, ModuleName: Mittapp_Mobile, acceptSslCert: false, acceptSslCerts: false, appActivity: host.exp.exponent.MainActivity, appPackage: com.app.myapp.qa, appium_port: 38080, autoGrantPermissions: true, automationName: Appium, browserstack-debug: true, browserstack.appiumLogs: true, browserstack.appiumVersion: 1.6.5, browserstack.appium_version: 1.6.5, browserstack.debug: true, browserstack.deviceLogs: true, browserstack.ie.noFlash: false, browserstack.minOSVersion: 5.0, browserstack.tunnelIdentifier: , browserstack.video: true, browserstack.video.disableWaterMark: false, bundleID: com.app.myapp.qa, databaseEnabled: false, detected_language: selenium/3.12.0 (java windows), device: google nexus 6, deviceManufacturer: motorola, deviceModel: Nexus 6, deviceName: Zabcd, deviceScreenSize: 1440x2560, deviceUDID: abcd, javascriptEnabled: true, locationContextEnabled: false, mobile: {browser: mobile, version: Google Nexus 6-6.0}, nativeWebScreenshot: true, networkConnectionEnabled: true, newCommandTimeout: 100, noReset: false, orig_os: android, osVersion: 6.0, os_version: 6.0, platform: ANDROID, platformName: Android, platformVersion: 6.0, proxy_type: node, realMobile: true, resetKeyboard: true, systemPort: 8200, takesScreenshot: true, udid: abcd, unicodeKeyboard: true, version: , warnings: {}, webStorageEnabled: false}
我什至无法在appium桌面上获得UI对象层次结构。请在下面的屏幕截图中找到更多信息
[我的应用程序的应用程序桌面截图] [1]
我尝试将AutomationType从Appium更改为UIAtuomation2,反之亦然,仍然无法解决问题。
我正在使用以下功能。
{“ app”:“ bs:// abcdefg”,“ platformVersion”:“ 7.1”,“ deviceName”: “ Samsung Galaxy Note 8”,“ platformName”:“ Android”,}
实际结果:我应该能够识别UI对象并对其执行操作