diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-03-26 01:19:00 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2017-03-26 02:58:17 +0000 |
commit | b3ebb8942115ef0d3fa3840f2056eac9a3bbe23a (patch) | |
tree | 3c4a60f5b51b583fc8de501a983f2b8c74641167 /uitest | |
parent | f71208f49599cd13529447a0b3e2e27baeae2128 (diff) |
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.mohrhard@googlemail.com>
Tested-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'uitest')
-rw-r--r-- | uitest/calc_tests/autofilter.py | 24 |
1 files changed, 24 insertions, 0 deletions
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: |