From 76087734f3a998ef56a1b04bfc9525ff375a4d69 Mon Sep 17 00:00:00 2001 From: Daniel Narvaez Date: Wed, 21 Nov 2012 23:16:44 +0000 Subject: Click the last stop button if there multiples Accomodate pippy --- (limited to 'tests') 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", -- cgit v0.9.1