Kaydet (Commit) b3ebb894 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

uitest: add demo showing how to interact with autofilter popup

Change-Id: Icda3c00a3a8c593a8f3129662c7688be000e3c7e
Reviewed-on: https://gerrit.libreoffice.org/35694Reviewed-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
Tested-by: 's avatarMarkus Mohrhard <markus.mohrhard@googlemail.com>
üst f71208f4
...@@ -27,4 +27,28 @@ class AutofilterTest(UITestCase): ...@@ -27,4 +27,28 @@ class AutofilterTest(UITestCase):
self.ui_test.close_doc() 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: # vim: set shiftwidth=4 softtabstop=4 expandtab:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment