From e686f5668bb91c5585307a5c7affe09264bcce23 Mon Sep 17 00:00:00 2001 From: Vadim Rutkovsky Date: Wed, 30 Apr 2014 11:59:27 +0200 Subject: tests: scroll to the bottom of contact editor if needed --- tests/steps/addressbook_steps.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests') diff --git a/tests/steps/addressbook_steps.py b/tests/steps/addressbook_steps.py index 2f254e8b1f..0bcdc369eb 100644 --- a/tests/steps/addressbook_steps.py +++ b/tests/steps/addressbook_steps.py @@ -245,6 +245,11 @@ def get_combobox_textbox_object(contact_editor, section): if button and (False in [x.showing for x in textboxes]): button.click() + # Scroll to the bottom of the page if possible + pagetab = panel.findAncestor(GenericPredicate(roleName='page tab')) + for scroll in pagetab.findChildren(lambda x: x.roleName == 'scroll bar'): + scroll.value = scroll.maxValue + comboboxes = panel.findChildren(GenericPredicate(roleName='combo box')) # Rearrange comboboxes and textboxes according to their position -- cgit v1.2.3