The UI testing in LibreOffice is based on introspection code in c++ interacting with a testing framework in python through a simple UNO interface. To identify objects we use the ids that we introduced for loading dialogs from UI files. During this Project the existing work should be extended and simplified.The project aims to implement new Domain Specific language to be used in UI testing by generate the python code needed for the python UI framework which will make testing easier. Also, The project aim to improve the logger that logs all the user interaction to be logged in the new DSL syntax to be more readable. Then we can use this replaying all the user interactions as a UI test. The project involved working with the UI elements and the UI testing framework of LibreOffice.