summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--uitest/calc_tests/autofilter.py24
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: