Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions commands/FBAccessibilityCommands.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ def printAccessibilityHierarchy(view, indent = 0):
print indentString + ('({} {}) {}'.format(classDesc, view, a11yLabel.GetObjectDescription()))

def accessibilityGrepHierarchy(view, needle):
global foundElement

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can these methods be made instance methods, and then foundElement made into an attribute? Or does this value need to persist from one chisel command invocation to the next?

a11yLabel = accessibilityLabel(view)

#if we don't have any accessibility string - we should have some children
Expand Down