diff options
author | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-21 23:16:44 (GMT) |
---|---|---|
committer | Daniel Narvaez <dwnarvaez@gmail.com> | 2012-11-21 23:16:44 (GMT) |
commit | 76087734f3a998ef56a1b04bfc9525ff375a4d69 (patch) | |
tree | 82af3366ff8ddca0fd1e1944ce5454f909295ecc /tests | |
parent | 0cda7ee911d4117ae3e94e808b76650013f85b6b (diff) |
Click the last stop button if there multiples
Accomodate pippy
Diffstat (limited to 'tests')
-rw-r--r-- | tests/shell.py | 5 |
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", |