diff --git a/tests/steps/addressbook_steps.py b/tests/steps/addressbook_steps.py index 0c8ed70e1c..1ad130654d 100644 --- a/tests/steps/addressbook_steps.py +++ b/tests/steps/addressbook_steps.py @@ -233,8 +233,8 @@ def get_combobox_textbox_object(contact_editor, section, scroll_to_bottom=True): 'Phones': 'Telephone', 'Emails': 'Email'} section = section_names[section.capitalize()] - lbl = contact_editor.child(roleName='label', name=section) - panel = lbl.findAncestor(GenericPredicate(roleName='panel')) + lbl = contact_editor.child(roleName='toggle button', name=section) + panel = lbl.findAncestor(GenericPredicate(roleName='filler')) textboxes = panel.findChildren(GenericPredicate(roleName='text')) # Scroll to the bottom of the page if needed