控件條件indexInParent不支援

className("ImageView").depth(7).indexInParent(0).findOne();

出現錯誤訊息 cannot find function"indexInParent"

活捉一隻死肥宅

一、不知道
二、不建议使用indexInParent
三、根据for遍历,没有indexInParent()过滤器
只有ui对象的indexInParent()方法。
但是我们可以手动写个过滤器,

let btn=className("android.widget.Button").filter(function(o){
return o.indexInParent()==3;
}).findOne();
最后由 卢某某 编辑

作为一个总结,首先如果很多方法我们不确定也不知道到底有没有。
最简单的使用for in遍历一个object。

let a = classNameContains("");
let str = "";
for (let i in a) {
    str += i + ":" + a[i] + "\n";
}
log(str);//输出过滤器的所有属性和方法。

至于有什么区别,区别如下。
1、for in会输出自身以及原型链上可枚举的属性。
2、Object.keys用来获取对象自身可枚举的属性键。
3、Object.getOwnPropertyNames用来获取对象自身的全部属性名

过滤器方法大全。
19:20:41.614/D: textStartsWith:function textStartsWith() {/*
com.stardust.automator.UiGlobalSelector textStartsWith(java.lang.String)
*/}

scrollLeft:function scrollLeft() {/*
boolean scrollLeft()
*/}

descMatches:function descMatches() {/*
com.stardust.automator.UiGlobalSelector descMatches(java.lang.String)
*/}

idMatches:function idMatches() {/*
com.stardust.automator.UiGlobalSelector idMatches(java.lang.String)
*/}

scrollRight:function scrollRight() {/*
boolean scrollRight()
*/}

drawingOrder:function drawingOrder() {/*
com.stardust.automator.UiGlobalSelector drawingOrder(int)
*/}

selection:undefined
clearFocus:function clearFocus() {/*
boolean clearFocus()
*/}

textEndsWith:function textEndsWith() {/*
com.stardust.automator.UiGlobalSelector textEndsWith(java.lang.String)
*/}

visibleToUser:function visibleToUser() {/*
com.stardust.automator.UiGlobalSelector visibleToUser()
com.stardust.automator.UiGlobalSelector visibleToUser(boolean)
*/}

depth:function depth() {/*
com.stardust.automator.UiGlobalSelector depth(int)
*/}

editable:function editable() {/*
com.stardust.automator.UiGlobalSelector editable()
com.stardust.automator.UiGlobalSelector editable(boolean)
*/}

textMatches:function textMatches() {/*
com.stardust.automator.UiGlobalSelector textMatches(java.lang.String)
*/}

checkable:function checkable() {/*
com.stardust.automator.UiGlobalSelector checkable()
com.stardust.automator.UiGlobalSelector checkable(boolean)
*/}

exists:function exists() {/*
boolean exists()
*/}

dismiss:function dismiss() {/*
boolean dismiss()
*/}

columnCount:function columnCount() {/*
com.stardust.automator.UiGlobalSelector columnCount(int)
*/}

rowSpan:function rowSpan() {/*
com.stardust.automator.UiGlobalSelector rowSpan(int)
*/}

scrollTo:function scrollTo() {/*
boolean scrollTo(int,int)
*/}

classNameStartsWith:function classNameStartsWith() {/*
com.stardust.automator.UiGlobalSelector classNameStartsWith(java.lang.String)
*/}

findAndReturnList:function findAndReturnList() {/*
java.util.List findAndReturnList(com.stardust.automator.UiObject)
*/}

setProgress:function setProgress() {/*
boolean setProgress(float)
*/}

packageNameEndsWith:function packageNameEndsWith() {/*
com.stardust.automator.UiGlobalSelector packageNameEndsWith(java.lang.String)
*/}

filter:function filter() {/*
com.stardust.automator.UiGlobalSelector filter(com.stardust.automator.filter.BooleanFilter$BooleanSupplier)
*/}

row:function row() {/*
com.stardust.automator.UiGlobalSelector row(int)
*/}

packageNameStartsWith:function packageNameStartsWith() {/*
com.stardust.automator.UiGlobalSelector packageNameStartsWith(java.lang.String)
*/}

scrollable:function scrollable() {/*
com.stardust.automator.UiGlobalSelector scrollable()
com.stardust.automator.UiGlobalSelector scrollable(boolean)
*/}

progress:undefined
waitFor:function waitFor() {/*
void waitFor()
*/}

enabled:function enabled() {/*
com.stardust.automator.UiGlobalSelector enabled()
com.stardust.automator.UiGlobalSelector enabled(boolean)
*/}

idContains:function idContains() {/*
com.stardust.automator.UiGlobalSelector idContains(java.lang.String)
*/}

focus:function focus() {/*
boolean focus()
*/}

descEndsWith:function descEndsWith() {/*
com.stardust.automator.UiGlobalSelector descEndsWith(java.lang.String)
*/}

scrollForward:function scrollForward() {/*
boolean scrollForward()
*/}

idStartsWith:function idStartsWith() {/*
com.stardust.automator.UiGlobalSelector idStartsWith(java.lang.String)
*/}

getClass:function getClass() {/*
java.lang.Class getClass()
*/}

paste:function paste() {/*
boolean paste()
*/}

equals:function equals() {/*
boolean equals(java.lang.Object)
*/}

copy:function copy() {/*
boolean copy()
*/}

scrollBackward:function scrollBackward() {/*
boolean scrollBackward()
*/}

findOf:function findOf() {/*
com.stardust.automator.UiObjectCollection findOf(com.stardust.automator.UiObject)
*/}

className:function className() {/*
com.stardust.automator.UiGlobalSelector className(java.lang.String)
*/}

contentInvalid:function contentInvalid() {/*
com.stardust.automator.UiGlobalSelector contentInvalid(boolean)
com.stardust.automator.UiGlobalSelector contentInvalid()
*/}

findOne:function findOne() {/*
com.stardust.automator.UiObject findOne()
com.stardust.automator.UiObject findOne(long)
*/}

selected:function selected() {/*
com.stardust.automator.UiGlobalSelector selected()
com.stardust.automator.UiGlobalSelector selected(boolean)
*/}

untilFindOne:function untilFindOne() {/*
com.stardust.automator.UiObject untilFindOne()
*/}

select:function select() {/*
boolean select()
*/}

click:function click() {/*
boolean click()
*/}

untilFind:function untilFind() {/*
com.stardust.automator.UiObjectCollection untilFind()
*/}

rowCount:function rowCount() {/*
com.stardust.automator.UiGlobalSelector rowCount(int)
*/}

setSelection:function setSelection() {/*
boolean setSelection(int,int)
*/}

text:function text() {/*
com.stardust.automator.UiGlobalSelector text(java.lang.String)
*/}

findOnce:function findOnce() {/*
com.stardust.automator.UiObject findOnce(int)
com.stardust.automator.UiObject findOnce()
*/}

addFilter:function addFilter() {/*
com.stardust.automator.UiGlobalSelector addFilter(com.stardust.automator.filter.ListFilter)
*/}

focusable:function focusable() {/*
com.stardust.automator.UiGlobalSelector focusable(boolean)
com.stardust.automator.UiGlobalSelector focusable()
*/}

accessibilityFocused:function accessibilityFocused() {/*
com.stardust.automator.UiGlobalSelector accessibilityFocused()
com.stardust.automator.UiGlobalSelector accessibilityFocused(boolean)
*/}

clickable:function clickable() {/*
com.stardust.automator.UiGlobalSelector clickable()
com.stardust.automator.UiGlobalSelector clickable(boolean)
*/}

column:function column() {/*
com.stardust.automator.UiGlobalSelector column(int)
*/}

class:class com.stardust.autojs.core.accessibility.UiSelector
focused:function focused() {/*
com.stardust.automator.UiGlobalSelector focused(boolean)
com.stardust.automator.UiGlobalSelector focused()
*/}

id:function id() {/*
com.stardust.autojs.core.accessibility.UiSelector id(java.lang.String)
*/}

contextClickable:function contextClickable() {/*
com.stardust.automator.UiGlobalSelector contextClickable(boolean)
com.stardust.automator.UiGlobalSelector contextClickable()
*/}

find:function find() {/*
com.stardust.automator.UiObjectCollection find()
*/}

bounds:function bounds() {/*
com.stardust.automator.UiGlobalSelector bounds(int,int,int,int)
*/}

toString:function toString() {/*
java.lang.String toString()
*/}

expand:function expand() {/*
boolean expand()
*/}

findOneOf:function findOneOf() {/*
com.stardust.automator.UiObject findOneOf(com.stardust.automator.UiObject)
*/}

desc:function desc() {/*
com.stardust.automator.UiGlobalSelector desc(java.lang.String)
*/}

classNameContains:function classNameContains() {/*
com.stardust.automator.UiGlobalSelector classNameContains(java.lang.String)
*/}

scrollUp:function scrollUp() {/*
boolean scrollUp()
*/}

classNameMatches:function classNameMatches() {/*
com.stardust.automator.UiGlobalSelector classNameMatches(java.lang.String)
*/}

accessibilityFocus:function accessibilityFocus() {/*
boolean accessibilityFocus()
*/}

scrollDown:function scrollDown() {/*
boolean scrollDown()
*/}

idEndsWith:function idEndsWith() {/*
com.stardust.automator.UiGlobalSelector idEndsWith(java.lang.String)
*/}

cut:function cut() {/*
boolean cut()
*/}

notify:function notify() {/*
void notify()
*/}

notifyAll:function notifyAll() {/*
void notifyAll()
*/}

packageName:function packageName() {/*
com.stardust.automator.UiGlobalSelector packageName(java.lang.String)
*/}

clearAccessibilityFocus:function clearAccessibilityFocus() {/*
boolean clearAccessibilityFocus()
*/}

boundsContains:function boundsContains() {/*
com.stardust.automator.UiGlobalSelector boundsContains(int,int,int,int)
*/}

descStartsWith:function descStartsWith() {/*
com.stardust.automator.UiGlobalSelector descStartsWith(java.lang.String)
*/}

show:function show() {/*
boolean show()
*/}

packageNameMatches:function packageNameMatches() {/*
com.stardust.automator.UiGlobalSelector packageNameMatches(java.lang.String)
*/}

setText:function setText() {/*
boolean setText(java.lang.String)
*/}

collapse:function collapse() {/*
boolean collapse()
*/}

descContains:function descContains() {/*
com.stardust.automator.UiGlobalSelector descContains(java.lang.String)
*/}

longClick:function longClick() {/*
boolean longClick()
*/}

boundsInside:function boundsInside() {/*
com.stardust.automator.UiGlobalSelector boundsInside(int,int,int,int)
*/}

password:function password() {/*
com.stardust.automator.UiGlobalSelector password(boolean)
com.stardust.automator.UiGlobalSelector password()
*/}

hashCode:function hashCode() {/*
int hashCode()
*/}

contextClick:function contextClick() {/*
boolean contextClick()
*/}

classNameEndsWith:function classNameEndsWith() {/*
com.stardust.automator.UiGlobalSelector classNameEndsWith(java.lang.String)
*/}

wait:function wait() {/*
void wait(long,int)
void wait(long)
void wait()
*/}

checked:function checked() {/*
com.stardust.automator.UiGlobalSelector checked(boolean)
com.stardust.automator.UiGlobalSelector checked()
*/}

multiLine:function multiLine() {/*
com.stardust.automator.UiGlobalSelector multiLine(boolean)
com.stardust.automator.UiGlobalSelector multiLine()
*/}

textContains:function textContains() {/*
com.stardust.automator.UiGlobalSelector textContains(java.lang.String)
*/}

dismissable:function dismissable() {/*
com.stardust.automator.UiGlobalSelector dismissable(boolean)
com.stardust.automator.UiGlobalSelector dismissable()
*/}

longClickable:function longClickable() {/*
com.stardust.automator.UiGlobalSelector longClickable(boolean)
com.stardust.automator.UiGlobalSelector longClickable()
*/}

columnSpan:function columnSpan() {/*
com.stardust.automator.UiGlobalSelector columnSpan(int)
*/}

packageNameContains:function packageNameContains() {/*
com.stardust.automator.UiGlobalSelector packageNameContains(java.lang.String)
*/}

UIobject对象的方法
19:19:43.759/D: scrollLeft:function scrollLeft() {/*
boolean scrollLeft()
*/}

source:undefined
setTraversalBefore:function setTraversalBefore() {/*
void setTraversalBefore(android.view.View)
void setTraversalBefore(android.view.View,int)
*/}

isDismissable:function isDismissable() {/*
boolean isDismissable()
*/}

isMultiLine:function isMultiLine() {/*
boolean isMultiLine()
*/}

getClassName:function getClassName() {/*
java.lang.CharSequence getClassName()
*/}

setContextClickable:function setContextClickable() {/*
void setContextClickable(boolean)
*/}

setCheckable:function setCheckable() {/*
void setCheckable(boolean)
*/}

getViewIdResourceName:function getViewIdResourceName() {/*
java.lang.String getViewIdResourceName()
*/}

editable:false
checkable:function checkable() {/*
boolean checkable()
*/}

dismiss:function dismiss() {/*
boolean dismiss()
*/}

getLabelFor:function getLabelFor() {/*
android.support.v4.view.accessibility.AccessibilityNodeInfoCompat getLabelFor()
*/}

scrollTo:function scrollTo() {/*
boolean scrollTo(int,int)
*/}

getWindowId:function getWindowId() {/*
int getWindowId()
*/}

setAccessibilityFocused:function setAccessibilityFocused() {/*
void setAccessibilityFocused(boolean)
*/}

getText:function getText() {/*
java.lang.CharSequence getText()
*/}

row:function row() {/*
int row()
*/}

getActionList:function getActionList() {/*
java.util.List getActionList()
*/}

mParentVirtualDescendantId:-1
enabled:function enabled() {/*
boolean enabled()
*/}

movementGranularities:0
getInputType:function getInputType() {/*
int getInputType()
*/}

maxTextLength:-1
paste:function paste() {/*
boolean paste()
*/}

setLongClickable:function setLongClickable() {/*
void setLongClickable(boolean)
*/}

findAccessibilityNodeInfosByViewId:function findAccessibilityNodeInfosByViewId() {/*
java.util.List findAccessibilityNodeInfosByViewId(java.lang.String)
*/}

copy:function copy() {/*
boolean copy()
*/}

isFocusable:function isFocusable() {/*
boolean isFocusable()
*/}

getWindow:function getWindow() {/*
android.support.v4.view.accessibility.AccessibilityWindowInfoCompat getWindow()
*/}

traversalBefore:null
isEditable:function isEditable() {/*
boolean isEditable()
*/}

selected:function selected() {/*
boolean selected()
*/}

viewIdResourceName:null
removeChild:function removeChild() {/*
boolean removeChild(android.view.View)
boolean removeChild(android.view.View,int)
*/}

extras:Bundle[{}]
addAction:function addAction() {/*
void addAction(int)
void addAction(android.support.v4.view.accessibility.AccessibilityNodeInfoCompat$AccessibilityActionCompat)
*/}

getChildCount:function getChildCount() {/*
int getChildCount()
*/}

select:function select() {/*
boolean select()
*/}

getParent:function getParent() {/*
android.support.v4.view.accessibility.AccessibilityNodeInfoCompat getParent()
*/}

getTextSelectionStart:function getTextSelectionStart() {/*
int getTextSelectionStart()
*/}

getBoundsInScreen:function getBoundsInScreen() {/*
void getBoundsInScreen(android.graphics.Rect)
*/}

getRoleDescription:function getRoleDescription() {/*
java.lang.CharSequence getRoleDescription()
*/}

rowCount:function rowCount() {/*
int rowCount()
*/}

canOpenPopup:function canOpenPopup() {/*
boolean canOpenPopup()
*/}

isFocused:function isFocused() {/*
boolean isFocused()
*/}

text:function text() {/*
java.lang.String text()
*/}

isLongClickable:function isLongClickable() {/*
boolean isLongClickable()
*/}

findByViewId:function findByViewId() {/*
java.util.List findByViewId(java.lang.String)
*/}

isClickable:function isClickable() {/*
boolean isClickable()
*/}

focusable:function focusable() {/*
boolean focusable()
*/}

isContextClickable:function isContextClickable() {/*
boolean isContextClickable()
*/}

removeAction:function removeAction() {/*
boolean removeAction(android.support.v4.view.accessibility.AccessibilityNodeInfoCompat$AccessibilityActionCompat)
*/}

setFocused:function setFocused() {/*
void setFocused(boolean)
*/}

column:function column() {/*
int column()
*/}

liveRegion:0
focused:function focused() {/*
boolean focused()
*/}

childCount:function childCount() {/*
int childCount()
*/}

contextClickable:false
find:function find() {/*
com.stardust.automator.UiObjectCollection find(com.stardust.automator.UiGlobalSelector)
*/}

bounds:function bounds() {/*
android.graphics.Rect bounds()
*/}

getActions:function getActions() {/*
int getActions()
*/}

toString:function toString() {/*
java.lang.String toString()
*/}

expand:function expand() {/*
boolean expand()
*/}

isSelected:function isSelected() {/*
boolean isSelected()
*/}

boundsInScreen:undefined
setMultiLine:function setMultiLine() {/*
void setMultiLine(boolean)
*/}

collectionInfo:null
desc:function desc() {/*
java.lang.String desc()
*/}

setCollectionItemInfo:function setCollectionItemInfo() {/*
void setCollectionItemInfo(java.lang.Object)
*/}

scrollUp:function scrollUp() {/*
boolean scrollUp()
*/}

contentDescription:null
accessibilityFocus:function accessibilityFocus() {/*
boolean accessibilityFocus()
*/}

findAccessibilityNodeInfosByText:function findAccessibilityNodeInfosByText() {/*
java.util.List findAccessibilityNodeInfosByText(java.lang.String)
*/}

getLiveRegion:function getLiveRegion() {/*
int getLiveRegion()
*/}

scrollDown:function scrollDown() {/*
boolean scrollDown()
*/}

labeledBy:null
recycle:function recycle() {/*
void recycle()
*/}

notify:function notify() {/*
void notify()
*/}

setMaxTextLength:function setMaxTextLength() {/*
void setMaxTextLength(int)
*/}

isVisibleToUser:function isVisibleToUser() {/*
boolean isVisibleToUser()
*/}

getTextSelectionEnd:function getTextSelectionEnd() {/*
int getTextSelectionEnd()
*/}

packageName:function packageName() {/*
java.lang.String packageName()
*/}

clearAccessibilityFocus:function clearAccessibilityFocus() {/*
boolean clearAccessibilityFocus()
*/}

setLiveRegion:function setLiveRegion() {/*
void setLiveRegion(int)
*/}

setInputType:function setInputType() {/*
void setInputType(int)
*/}

setSelected:function setSelected() {/*
void setSelected(boolean)
*/}

setError:function setError() {/*
void setError(java.lang.CharSequence)
*/}

setText:function setText() {/*
boolean setText(java.lang.String)
void setText(java.lang.CharSequence)
*/}

setBoundsInParent:function setBoundsInParent() {/*
void setBoundsInParent(android.graphics.Rect)
*/}

setDismissable:function setDismissable() {/*
void setDismissable(boolean)
*/}

isContentInvalid:function isContentInvalid() {/*
boolean isContentInvalid()
*/}

longClick:function longClick() {/*
boolean longClick()
*/}

getExtras:function getExtras() {/*
android.os.Bundle getExtras()
*/}

isScrollable:function isScrollable() {/*
boolean isScrollable()
*/}

setLabeledBy:function setLabeledBy() {/*
void setLabeledBy(android.view.View,int)
void setLabeledBy(android.view.View)
*/}

setViewIdResourceName:function setViewIdResourceName() {/*
void setViewIdResourceName(java.lang.String)
*/}

boundsInParent:function boundsInParent() {/*
android.graphics.Rect boundsInParent()
*/}

setPackageName:function setPackageName() {/*
void setPackageName(java.lang.CharSequence)
*/}

checked:function checked() {/*
boolean checked()
*/}

getAllocator:function getAllocator() {/*
com.stardust.view.accessibility.AccessibilityNodeInfoAllocator getAllocator()
*/}

parent:function parent() {/*
com.stardust.automator.UiObject parent()
*/}

hierarchically:false
findFocus:function findFocus() {/*
android.support.v4.view.accessibility.AccessibilityNodeInfoCompat findFocus(int)
*/}

setFocusable:function setFocusable() {/*
void setFocusable(boolean)
*/}

setCanOpenPopup:function setCanOpenPopup() {/*
void setCanOpenPopup(boolean)
*/}

getContentDescription:function getContentDescription() {/*
java.lang.CharSequence getContentDescription()
*/}

dismissable:false
getTraversalAfter:function getTraversalAfter() {/*
android.support.v4.view.accessibility.AccessibilityNodeInfoCompat getTraversalAfter()
*/}

longClickable:function longClickable() {/*
boolean longClickable()
*/}

setEnabled:function setEnabled() {/*
void setEnabled(boolean)
*/}

columnSpan:function columnSpan() {/*
int columnSpan()
*/}

setScrollable:function setScrollable() {/*
void setScrollable(boolean)
*/}

scrollRight:function scrollRight() {/*
boolean scrollRight()
*/}

error:null
windowId:3344
drawingOrder:function drawingOrder() {/*
int drawingOrder()
*/}

getBoundsInParent:function getBoundsInParent() {/*
void getBoundsInParent(android.graphics.Rect)
*/}

getPackageName:function getPackageName() {/*
java.lang.CharSequence getPackageName()
*/}

selection:undefined
clearFocus:function clearFocus() {/*
boolean clearFocus()
*/}

depth:function depth() {/*
int depth()
*/}

visibleToUser:function visibleToUser() {/*
boolean visibleToUser()
*/}

setClickable:function setClickable() {/*
void setClickable(boolean)
*/}

focusSearch:function focusSearch() {/*
android.support.v4.view.accessibility.AccessibilityNodeInfoCompat focusSearch(int)
*/}

columnCount:function columnCount() {/*
int columnCount()
*/}

getMovementGranularities:function getMovementGranularities() {/*
int getMovementGranularities()
*/}

getRangeInfo:function getRangeInfo() {/*
android.support.v4.view.accessibility.AccessibilityNodeInfoCompat$RangeInfoCompat getRangeInfo()
*/}

isCheckable:function isCheckable() {/*
boolean isCheckable()
*/}

getError:function getError() {/*
java.lang.CharSequence getError()
*/}

isAccessibilityFocused:function isAccessibilityFocused() {/*
boolean isAccessibilityFocused()
*/}

rowSpan:function rowSpan() {/*
int rowSpan()
*/}

child:function child() {/*
com.stardust.automator.UiObject child(int)
*/}

setVisibleToUser:function setVisibleToUser() {/*
void setVisibleToUser(boolean)
*/}

setRangeInfo:function setRangeInfo() {/*
void setRangeInfo(android.support.v4.view.accessibility.AccessibilityNodeInfoCompat$RangeInfoCompat)
*/}

setProgress:function setProgress() {/*
boolean setProgress(float)
*/}

setChecked:function setChecked() {/*
void setChecked(boolean)
*/}

isEnabled:function isEnabled() {/*
boolean isEnabled()
*/}

scrollable:function scrollable() {/*
boolean scrollable()
*/}

progress:undefined
setClassName:function setClassName() {/*
void setClassName(java.lang.CharSequence)
*/}

focus:function focus() {/*
boolean focus()
*/}

scrollForward:function scrollForward() {/*
boolean scrollForward()
*/}

setPassword:function setPassword() {/*
void setPassword(boolean)
*/}

getClass:function getClass() {/*
java.lang.Class getClass()
*/}

equals:function equals() {/*
boolean equals(java.lang.Object)
*/}

scrollBackward:function scrollBackward() {/*
boolean scrollBackward()
*/}

className:function className() {/*
java.lang.String className()
*/}

contentInvalid:false
findOne:function findOne() {/*
com.stardust.automator.UiObject findOne(com.stardust.automator.UiGlobalSelector)
*/}

getCollectionInfo:function getCollectionInfo() {/*
android.support.v4.view.accessibility.AccessibilityNodeInfoCompat$CollectionInfoCompat getCollectionInfo()
*/}

setTraversalAfter:function setTraversalAfter() {/*
void setTraversalAfter(android.view.View,int)
void setTraversalAfter(android.view.View)
*/}

getDrawingOrder:function getDrawingOrder() {/*
int getDrawingOrder()
*/}

setDrawingOrder:function setDrawingOrder() {/*
void setDrawingOrder(int)
*/}

addChild:function addChild() {/*
void addChild(android.view.View,int)
void addChild(android.view.View)
*/}

findByText:function findByText() {/*
java.util.List findByText(java.lang.String)
*/}

allocator:null
click:function click() {/*
boolean click()
*/}

setImportantForAccessibility:function setImportantForAccessibility() {/*
void setImportantForAccessibility(boolean)
*/}

children:function children() {/*
com.stardust.automator.UiObjectCollection children()
*/}

setBoundsInScreen:function setBoundsInScreen() {/*
void setBoundsInScreen(android.graphics.Rect)
*/}

setSelection:function setSelection() {/*
boolean setSelection(int,int)
*/}

setContentInvalid:function setContentInvalid() {/*
void setContentInvalid(boolean)
*/}

accessibilityFocused:function accessibilityFocused() {/*
boolean accessibilityFocused()
*/}

clickable:function clickable() {/*
boolean clickable()
*/}

textSelectionEnd:-1
setEditable:function setEditable() {/*
void setEditable(boolean)
*/}

class:class com.stardust.automator.UiObject
textSelectionStart:-1
id:function id() {/*
java.lang.String id()
*/}

isImportantForAccessibility:function isImportantForAccessibility() {/*
boolean isImportantForAccessibility()
*/}

traversalAfter:null
setTextSelection:function setTextSelection() {/*
void setTextSelection(int,int)
*/}

getTraversalBefore:function getTraversalBefore() {/*
android.support.v4.view.accessibility.AccessibilityNodeInfoCompat getTraversalBefore()
*/}

getCollectionItemInfo:function getCollectionItemInfo() {/*
android.support.v4.view.accessibility.AccessibilityNodeInfoCompat$CollectionItemInfoCompat getCollectionItemInfo()
*/}

inputType:0
refresh:function refresh() {/*
boolean refresh()
*/}

rangeInfo:null
roleDescription:null
indexInParent:function indexInParent() {/*
int indexInParent()
*/}

cut:function cut() {/*
boolean cut()
*/}

getInfo:function getInfo() {/*
java.lang.Object getInfo()
*/}

notifyAll:function notifyAll() {/*
void notifyAll()
*/}

setRoleDescription:function setRoleDescription() {/*
void setRoleDescription(java.lang.CharSequence)
*/}

window:AccessibilityWindowInfo[id=3344, type=TYPE_APPLICATION, layer=21080, bounds=Rect(0, 0 - 720, 1280), focused=true, active=true, hasParent=false, hasChildren=false]
setCollectionInfo:function setCollectionInfo() {/*
void setCollectionInfo(java.lang.Object)
*/}

performAction:function performAction() {/*
boolean performAction(int)
boolean performAction(int,android.os.Bundle)
boolean performAction(int,com.stardust.automator.ActionArgument[])
*/}

getMaxTextLength:function getMaxTextLength() {/*
int getMaxTextLength()
*/}

textSelection:undefined
show:function show() {/*
boolean show()
*/}

setContentDescription:function setContentDescription() {/*
void setContentDescription(java.lang.CharSequence)
*/}

collapse:function collapse() {/*
boolean collapse()
*/}

info:android.view.accessibility.AccessibilityNodeInfo@80036c57; boundsInParent: Rect(0, 0 - 720, 1280); boundsInScreen: Rect(0, 0 - 720, 1280); packageName: com.stardust.scriptdroid; className: android.widget.FrameLayout; text: null; error: null; maxTextLength: -1; contentDescription: null; viewIdResName: null; checkable: false; checked: false; focusable: false; focused: false; selected: false; clickable: false; longClickable: false; enabled: true; password: false; scrollable: false; actions: [AccessibilityAction: ACTION_SELECT - null, AccessibilityAction: ACTION_CLEAR_SELECTION - null, AccessibilityAction: ACTION_ACCESSIBILITY_FOCUS - null]
setMovementGranularities:function setMovementGranularities() {/*
void setMovementGranularities(int)
*/}

setParent:function setParent() {/*
void setParent(android.view.View,int)
void setParent(android.view.View)
*/}

actionList:[android.support.v4.view.accessibility.AccessibilityNodeInfoCompat$AccessibilityActionCompat@498ee3a, android.support.v4.view.accessibility.AccessibilityNodeInfoCompat$AccessibilityActionCompat@88f4aeb, android.support.v4.view.accessibility.AccessibilityNodeInfoCompat$AccessibilityActionCompat@2a98b048]
password:function password() {/*
boolean password()
*/}

setSource:function setSource() {/*
void setSource(android.view.View)
void setSource(android.view.View,int)
*/}

isChecked:function isChecked() {/*
boolean isChecked()
*/}

hashCode:function hashCode() {/*
int hashCode()
*/}

contextClick:function contextClick() {/*
boolean contextClick()
*/}

wait:function wait() {/*
void wait(long,int)
void wait(long)
void wait()
*/}

actions:76
multiLine:false
getChild:function getChild() {/*
android.support.v4.view.accessibility.AccessibilityNodeInfoCompat getChild(int)
*/}

isPassword:function isPassword() {/*
boolean isPassword()
*/}

isHierarchically:function isHierarchically() {/*
boolean isHierarchically()
*/}

importantForAccessibility:true
setLabelFor:function setLabelFor() {/*
void setLabelFor(android.view.View,int)
void setLabelFor(android.view.View)
*/}

getLabeledBy:function getLabeledBy() {/*
android.support.v4.view.accessibility.AccessibilityNodeInfoCompat getLabeledBy()
*/}

collectionItemInfo:null
labelFor:null

謝謝你提供的建議,夠我消化許久

  • 7
    帖子
  • 2177
    浏览

与 Auto.js 的连接断开,我们正在尝试重连,请耐心等待