diff --git a/sw/qa/uitest/writer_tests3/customizeDialog.py b/sw/qa/uitest/writer_tests3/customizeDialog.py index 5b6ab664346a..52adae2b0ee1 100644 --- a/sw/qa/uitest/writer_tests3/customizeDialog.py +++ b/sw/qa/uitest/writer_tests3/customizeDialog.py @@ -35,7 +35,7 @@ class ConfigureDialog(UITestCase): initialEntryCount = get_state_as_dict(xfunc)["Children"] self.assertTrue(initialEntryCount != 0) - xSearch.executeAction("SET", mkPropertyValues({"TEXT":"format"})) + xSearch.executeAction("TYPE", mkPropertyValues({"TEXT":"format"})) # Wait for the search/filter op to be completed timeout = time.time() + 1 diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx index 32d8d2417f0f..90322d500611 100644 --- a/vcl/source/uitest/uiobject.cxx +++ b/vcl/source/uitest/uiobject.cxx @@ -720,7 +720,7 @@ void EditUIObject::execute(const OUString& rAction, const StringMap& rParameters) { bool bHandled = true; - if (rAction == "SET") + if (rAction == "TYPE") { if (rParameters.find("TEXT") != rParameters.end()) { @@ -743,6 +743,17 @@ void EditUIObject::execute(const OUString& rAction, bHandled = false; } } + else if (rAction == "SET") + { + auto it = rParameters.find("TEXT"); + if (it != rParameters.end()) + { + mxEdit->SetText(it->second); + mxEdit->Modify(); + } + else + bHandled = false; + } else if (rAction == "SELECT") { if (rParameters.find("FROM") != rParameters.end() &&