AccessibilityNodeInfo clickable:false和longClickable:false如何修改为true

时间:2019-01-09 05:48:02

标签: android click action android-accessibility

我尝试自动化其他第三方混合android应用程序。 在该应用中可点击:false; longClickable:否;

所以node.performAction(AccessibilityNodeInfo.ACTION_CLICK);不起作用

任何人都可以建议我们使用辅助功能获得clickable:true吗?

android.view.accessibility.AccessibilityNodeInfo@b3b7;
boundsInParent: Rect(0, 0 - 59, 25); 
boundsInScreen: Rect(241, 856 - 300, 881); 
packageName: com.mpt.dms; 
className: android.widget.TextView; 
text: Service; 
error: null; 
maxTextLength: -1; 
contentDescription: null; 
viewIdResName: null; 
checkable: false; 
checked: false; 
focusable: false; 
focused: false; 
selected: false;

clickable:false; longClickable:否;

 contextClickable: false; 
 enabled: true; password: false; 
 scrollable: false; 
 importantForAccessibility: true; 
 actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: 
 ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null, AccessibilityAction: ACTION_NEXT_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY - null, AccessibilityAction: ACTION_SET_SELECTION - null, AccessibilityAction: ACTION_SHOW_ON_SCREEN - null]

0 个答案:

没有答案