From 53c4a93e32a5bcdc06a580e9652cde535134b3f6 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Wed, 17 Mar 2021 18:58:44 +0200 Subject: select_by_text helper method for uitests reduce the boilerplate associated with selecting an item in a combobox Change-Id: I035967d7b45c84788d67b9ab5bebf2dbfc13fdf9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112817 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sc/qa/uitest/calc_tests8/tdf126248.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sc/qa/uitest/calc_tests8') diff --git a/sc/qa/uitest/calc_tests8/tdf126248.py b/sc/qa/uitest/calc_tests8/tdf126248.py index f633bf9bcf41..146ee8a75131 100644 --- a/sc/qa/uitest/calc_tests8/tdf126248.py +++ b/sc/qa/uitest/calc_tests8/tdf126248.py @@ -10,6 +10,7 @@ from uitest.uihelper.common import get_state_as_dict from libreoffice.uno.propertyvalue import mkPropertyValues from uitest.uihelper.calc import enter_text_to_cell from uitest.uihelper.common import select_pos +from uitest.uihelper.common import select_by_text class tdf126248(UITestCase): @@ -43,7 +44,7 @@ class tdf126248(UITestCase): self.assertEqual("true", get_state_as_dict(asianlanguage)['Selected']) localeSetting = xDialog.getChild("localesetting") - localeSetting.executeAction("SELECT", mkPropertyValues({"TEXT": language})) + select_by_text(localeSetting, language) self.assertEqual(language, get_state_as_dict(localeSetting)['SelectEntryText']) -- cgit