diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/shell.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/shell.py b/tests/shell.py index 1b94044..9edc0c8 100644 --- a/tests/shell.py +++ b/tests/shell.py @@ -1,3 +1,5 @@ +from operator import attrgetter + from dogtail import tree from dogtail import predicate @@ -24,6 +26,8 @@ cells = table.findChildren(predicate.GenericPredicate(roleName="table cell")) for row in [cells[i:i+5] for i in range(0, len(cells), 5)]: activities.append(Activity(name=row[2].text, icon=row[1])) +activities.sort(key=attrgetter("name")) + # Launch and close all the activities for activity in activities: print "Launching %s" % activity.name |