uitest/calc_tests/autofilter.py | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+)
New commits: commit b3ebb8942115ef0d3fa3840f2056eac9a3bbe23a Author: Markus Mohrhard <markus.mohrh...@googlemail.com> Date: Sun Mar 26 01:19:00 2017 +0100 uitest: add demo showing how to interact with autofilter popup Change-Id: Icda3c00a3a8c593a8f3129662c7688be000e3c7e Reviewed-on: https://gerrit.libreoffice.org/35694 Reviewed-by: Markus Mohrhard <markus.mohrh...@googlemail.com> Tested-by: Markus Mohrhard <markus.mohrh...@googlemail.com> diff --git a/uitest/calc_tests/autofilter.py b/uitest/calc_tests/autofilter.py index 82a2023fea75..fc5c1c897ef9 100644 --- a/uitest/calc_tests/autofilter.py +++ b/uitest/calc_tests/autofilter.py @@ -27,4 +27,28 @@ class AutofilterTest(UITestCase): self.ui_test.close_doc() + def test_hierarchy(self): + doc = self.ui_test.load_file(get_url_for_data_file("autofilter.ods")) + + xGridWin = self.xUITest.getTopFocusWindow().getChild("grid_window") + xGridWin.executeAction("LAUNCH", mkPropertyValues({"AUTOFILTER": "", "COL": "1", "ROW": "1"})) + + time.sleep(3) + + print(xGridWin.getChildren()) + xCheckListMenu = xGridWin.getChild("check_list_menu") + print("temp") + print(xCheckListMenu) + print(dir(xCheckListMenu)) + print("temp") + + json_string = xCheckListMenu.getHierarchy() + print(json_string) + json_content = json.loads(json_string) + print(json_content) + print(json.dumps(json_content, indent=4)) + time.sleep(10) + + self.ui_test.close_doc() + # vim: set shiftwidth=4 softtabstop=4 expandtab: _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits