diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-07-01 16:57:35 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-07-01 16:57:35 (GMT) |
commit | 04cb9c12db362d707651cc4021f8528d45333e4f (patch) | |
tree | 2a0907edf1ee5c436b67bb055df2d34feed1b98d | |
parent | 05663a66c724000b3b9bda5fe38c3bf61917ca99 (diff) |
Disable pippy for now
Need to figure out how to deal with the double stop button
-rw-r--r-- | tests/shell.py | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/tests/shell.py b/tests/shell.py index 2e8db5a..f78963a 100644 --- a/tests/shell.py +++ b/tests/shell.py @@ -4,7 +4,6 @@ from dogtail import tree from dogtail import predicate ACTIVITIES_WITH_OBJECT_CHOOSER = ["Read", "Image Viewer", "Jukebox"] -ACTIVITIES_MULTIPLE_STOP = ["Pippy"] class ActivityLauncher: def __init__(self, name=None, icon=None): @@ -39,6 +38,9 @@ radio_button.click() # Launch and close all the activities for activity_launcher in get_activity_launchers(shell): + if activity_launcher.name == "Pippy": + continue + print "Launching %s" % activity_launcher.name activity_launcher.icon.click() @@ -49,11 +51,5 @@ for activity_launcher in get_activity_launchers(shell): activity = tree.root.child(name="sugar-activity", roleName="application") - if activity_launcher.name in ACTIVITIES_MULTIPLE_STOP: - toolbar = activity.child(roleName="tool bar") - pred = predicate.GenericPredicate(name="Stop", roleName="push button") - stop_buttons = toolbar.findChildren(pred) - stop_buttons[-1].click() - else: - stop_button = activity.child(name="Stop", roleName="push button") - stop_button.click() + stop_button = activity.child(name="Stop", roleName="push button") + stop_button.click() |