diff options
author | Noel Grandin <noelgrandin@gmail.com> | 2021-03-17 18:58:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2021-03-21 11:31:04 +0100 |
commit | 53c4a93e32a5bcdc06a580e9652cde535134b3f6 (patch) | |
tree | 2905b3cd35f37e8b7395c5c66b626940b1e0355f /sc/qa/uitest/calc_tests8 | |
parent | 31d4f6c35a10a4bee4f4aebb86f05f8a9fd872bb (diff) |
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 <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sc/qa/uitest/calc_tests8')
-rw-r--r-- | sc/qa/uitest/calc_tests8/tdf126248.py | 3 |
1 files changed, 2 insertions, 1 deletions
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']) |