aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorVadim Rutkovsky <vrutkovs@redhat.com>2014-04-30 17:59:27 +0800
committerVadim Rutkovsky <vrutkovs@redhat.com>2014-04-30 17:59:27 +0800
commite686f5668bb91c5585307a5c7affe09264bcce23 (patch)
treec4e11da96fab925a5d200f3474cc90deeac17484 /tests
parent42811ca82d8e95d42b69e814b2f01e8d95d62845 (diff)
downloadgsoc2013-evolution-e686f5668bb91c5585307a5c7affe09264bcce23.tar
gsoc2013-evolution-e686f5668bb91c5585307a5c7affe09264bcce23.tar.gz
gsoc2013-evolution-e686f5668bb91c5585307a5c7affe09264bcce23.tar.bz2
gsoc2013-evolution-e686f5668bb91c5585307a5c7affe09264bcce23.tar.lz
gsoc2013-evolution-e686f5668bb91c5585307a5c7affe09264bcce23.tar.xz
gsoc2013-evolution-e686f5668bb91c5585307a5c7affe09264bcce23.tar.zst
gsoc2013-evolution-e686f5668bb91c5585307a5c7affe09264bcce23.zip
tests: scroll to the bottom of contact editor if needed
Diffstat (limited to 'tests')
-rw-r--r--tests/steps/addressbook_steps.py5
1 files changed, 5 insertions, 0 deletions
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