# Change Window State

The **Change Window State** feature allows you to change the state of the WPF application window in test run-time. This article demonstrates how to add this type of step into the test.

Choose the **Change Window State** option from the <a href="/features/custom-steps/overview" target="_blank">**Step Builder**</a> and click on the **Add Step** button in the lower right corner of the pane.

![Add Change Window State Step](https://www.telerik.com/teststudio/documentation/assets/af4af7e0ec196059ff898e6bd385b612/step-builder-change-window.png)

The **WindowState** property of the step allows to change this to one of the following options:

* Normal
* Minimized
* Maximized
* Closed

The **WindowCaption** property defines the window which state gets changed and is a mandatory field.

![Step Properties](https://www.telerik.com/teststudio/documentation/assets/e77b71471d941e73417168fdf79eeca4/extended-menu-change-window.png)
