如题,可校验到元素,可点击元素,但是appium模式输入不了。
本来程序是正常用的,后来换手机就不行了,换了4台手机2台不行,没找到规律。
两台荣耀两台OPPO,不是品牌的问题。系统版本也好像不是。
主要报错代码是:
ACTION_SET_PROGRESS has failed on the element 'android.view.accessibility.AccessibilityNodeInfo@10127b; boundsInParent: Rect(0, 0 - 328, 35); boundsInScreen: Rect(32, 158 - 688, 228); measured width: 0; measured height: 0; packageName: com.XXX.XXX; className: android.widget.EditText; text: 请输入号码; error: null; maxTextLength: -1; stateDescription: null; contentDescription: null; tooltipText: null; viewIdResName: null; checkable: false; checked: false; focusable: true; focused: true; selected: false; clickable: true; longClickable: false; contextClickable: false; enabled: true; password: false; scrollable: false; importantForAccessibility: false; visible: true; actions: [AccessibilityAction: ACTION_NEXT_HTML_ELEMENT - null, AccessibilityAction: ACTION_PREVIOUS_HTML_ELEMENT - null, AccessibilityAction: ACTION_SHOW_ON_SCREEN - null, AccessibilityAction: ACTION_CONTEXT_CLICK - null, AccessibilityAction: ACTION_LONG_CLICK - null, AccessibilityAction: ACTION_NEXT_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_SET_TEXT - null, AccessibilityAction: ACTION_PASTE - null, AccessibilityAction: ACTION_IME_ENTER - null, AccessibilityAction: ACTION_CLEAR_FOCUS - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_CLICK - null, AccessibilityAction: ACTION_SET_PROGRESS - null]'. Did you interact with the correct element?
偶尔报错代码是:
Cached elements 'By.xpath: /hierarchy/android.widget.FrameLayout/android.widget.LinearLayout/android.widget.FrameLayout/android.widget.LinearLayout[@resource-id="com.XXX.XXX:id/action_bar_root"]/android.widget.FrameLayout[@resource-id="android:id/content"]/android.widget.RelativeLayout[@resource-id="com.XXX.XXX:id/rlRoot"]/android.widget.RelativeLayout/android.widget.FrameLayout[@resource-id="com.XXX.XXX:id/adbWebView_container"]/android.widget.FrameLayout/android.widget.FrameLayout/android.widget.FrameLayout[@resource-id="com.XXX.XXX:id/webview"]/android.webkit.WebView/android.webkit.WebView/android.view.View[@resource-id="root"]/android.view.View[@index=1]' do not exist in DOM anymore

