# Find and Manipulate Window Elements

> Example project demonstrating how to change font size in a Notepad file using Find Element and other activities.

The example below explains how to automate the action of changing the font size in a notepad file. It presents activities such as [Find Element](https://docs.uipath.com/activities/other/latest/ui-automation/wait-ui-element-appear), [Find Relative Element](https://docs.uipath.com/activities/other/latest/ui-automation/find-relative), [Click](https://docs.uipath.com/activities/other/latest/ui-automation/click), [Activate](https://docs.uipath.com/activities/other/latest/ui-automation/activate), or [Set Focus](https://docs.uipath.com/activities/other/latest/ui-automation/set-focus). You can find these activities in the **UiPath.UIAutomation.Activities** package.

This is how the automation process can be built:

1. Open Studio and create a new **Process**.
2. Drag a **Sequence** container in the **Workflow Designer**.
   * Create the following variable:

     | Variable Name | Variable Type | Default Value |
     | --- | --- | --- |
     | `EditElement` | **UiPath.Core.UiElement** |  |
     | `FormatElement` | **UiPath.Core.UiElement** |  |
3. Drag an **OpenApplication** activity inside the **Sequence** container.
   * Inside the activity, click the **Indicate window on screen** option. Then you can select the **Notepad** window. The GIF below shows all the steps you need to follow:

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-181328-d8486f25.gif)
4. Drag a **Find Element** activity below the **OpenApplication** activity.
   * Inside the activity, click the **Indicate on screen** option. The GIF below shows all the steps you need to follow:

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-find1-872b2c35.gif)
   * In the **Properties** panel, select the **COMPLETE** option from the **WaitForReady** drop-down list.
   * Add the variable `EditElement` in the **FoundElement** field.
5. Place a **Find Relative** activity below the **Find Element** activity.
   * In the **Properties** panel, add the value `20` in the **OffsetX** field.
   * Select the option **TopRight** from the **Position** drop-down list.
   * Add the variable `EditElement` in the **Element** field.
   * Add the variable `FormatElement` in the **RelativeElement** field.
6. Place a **Click** activity below the **Find Relative** activity.
   * In the **Properties** panel, add the variable `FormatElement` in the **Element** field.
   * Select the **None** option from the **KeyModifiers** drop-down list.
7. Place another **Click** activity below the first **Click** activity.
   * Inside the activity, click the **Indicate on screen** option. The GIF below shows all the steps you need to follow:

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-find2-efac5d9c.gif)
8. Drag an **Activate** activity below the **Click** activity.
   * Inside the activity, click the **Indicate on screen** option. The GIF below shows all the steps you need to follow:

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-find3-210336f3.gif)
9. Place a **Set Focus** activity below the **Activate** activity.
   * Inside the activity, click the **Indicate on screen** option, and select the **Size** menu option. The GIF below shows all the steps you need to follow:

     ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-find4-8a811bfd.gif)
10. Drag a **Send Hotkey** activity below the **Set Focus** activity.
    * In the `Key`
      field, type the value `down`.
    * In the **Properties** panel, select the check box for the **Activate** option. This option brings the UI element to the foreground and activates it before the text is written.
    * Select the **None** option from the **KeyModifiers** drop-down list.
    * Select the check box for the **SpecialKey** option. This indicates that you are using a special key in the keyboard shortcut.
11. Place a **Click** activity below the **Send Hotkey** activity.
    * Inside the activity, click the **Indicate on screen** option. The GIF below shows all the steps you need to follow:

      ![docs image](https://dev-assets.cms.uipath.com/assets/images/activities/activities-docs-image-find5-b76f5c6d.gif)
12. Run the process. The automation opens a new Notepad file, navigates through the menu and changes the font size.

[Download example](https://docexamples.uipath.com/examples/Activities/Find%20and%20Manipulate%20Window%20Elements%20-%20Example.zip)
