Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Narvaez <dwnarvaez@gmail.com>2012-11-21 23:16:44 (GMT)
committer Daniel Narvaez <dwnarvaez@gmail.com>2012-11-21 23:16:44 (GMT)
commit76087734f3a998ef56a1b04bfc9525ff375a4d69 (patch)
tree82af3366ff8ddca0fd1e1944ce5454f909295ecc /tests
parent0cda7ee911d4117ae3e94e808b76650013f85b6b (diff)
Click the last stop button if there multiples
Accomodate pippy
Diffstat (limited to 'tests')
-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",