diff options
-rw-r--r-- | uitest/calc_tests/autofilter.py | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/uitest/calc_tests/autofilter.py b/uitest/calc_tests/autofilter.py index fc5c1c897ef9..431043b02f03 100644 --- a/uitest/calc_tests/autofilter.py +++ b/uitest/calc_tests/autofilter.py @@ -31,23 +31,18 @@ class AutofilterTest(UITestCase): 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"})) + xGridWin.executeAction("LAUNCH", mkPropertyValues({"AUTOFILTER": "", "COL": "0", "ROW": "0"})) + + xFloatWindow = self.xUITest.getFloatWindow() + xCheckListMenu = xFloatWindow.getChild("check_list_menu") + + xTreeList = xCheckListMenu.getChild("check_list_box") + xFirstEntry = xTreeList.getChild("0") + + xFirstEntry.executeAction("CLICK", tuple()) - 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) + xOkBtn = xFloatWindow.getChild("ok") + xOkBtn.executeAction("CLICK", tuple()) self.ui_test.close_doc() |