---input file(.txt) contents--- CommandSent Name:.uno:FontDialog ModalDialogExecuted Id:CharacterPropertiesDialog ListBoxUIObject Action:SELECT Id:linestylelb Parent:CharacterPropertiesDialog {"POS":4} ButtonUIObject Action:CLICK Id:ok Parent:CharacterPropertiesDialog ---output file (.py) contents--- from uitest.framework import UITestCase import importlib class TestClass(UITestCase): def test_function(self): self.ui_test.execute_dialog_through_command(".uno:FontDialog") CharacterPropertiesDialog = self.xUITest.getTopFocusWindow() linestylelb = CharacterPropertiesDialog.getChild("linestylelb") linestylelb.executeAction("SELECT", mkPropertyValues({"POS":4})) ok = CharacterPropertiesDialog.getChild("ok") ok.executeAction("CLICK",tuple())