From 04cb9c12db362d707651cc4021f8528d45333e4f Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Sun, 01 Jul 2012 16:57:35 +0000 Subject: Disable pippy for now Need to figure out how to deal with the double stop button --- (limited to 'tests/shell.py') 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() -- cgit v0.9.1