Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests/shell.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell.py')
-rw-r--r--tests/shell.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/shell.py b/tests/shell.py
index 03d4036..3989f1b 100644
--- a/tests/shell.py
+++ b/tests/shell.py
@@ -50,8 +50,9 @@ def launch_and_stop_activity(activity_name):
activity = root.find_child(name="sugar-activity",
role_name="application")
- stop_button = activity.find_child(name="Stop", role_name="push button")
- stop_button.do_action("click")
+ stop_buttons = activity.find_children(name="Stop",
+ role_name="push button")
+ stop_buttons[-1].do_action("click")
activity = root.find_child(name="sugar-activity",
role_name="application",