# Enhancing Scrolling Efficiency in Desktop UI Applications with Leapwork

In Leapwork, many building blocks include a built-in **'Scroll to Find'** option, which helps users scroll within desktop applications. This option provides several settings, including None, Up, Down, Right, and Left.

**But what should you do when 'Scroll to Find' isn’t working as expected?** In this article, you'll learn how to handle scrolling in desktop UI applications in this scenario. We’ll guide you through two effective methods in Leapwork to help you easily navigate and interact with scrollable elements.

## Method 1
Use the 'Invoke UI Element' and select the method 'Scroll into View'. Then connect to the 'Click UI Element' block.

**1.** As you can see in the image, in this method, we started by linking the 'Find UI Element' block to the 'Invoke UI Element' block. The 'Invoke UI Element' block is used to invoke UI elements using the invoke automation pattern, which doesn’t use the mouse pointer but instead sends a Windows internal message and is often faster.

**2.** Next, we choose the 'Scroll into View' method to make sure the element is visible on the screen.

**3.** Then, we connected the 'Click UI Element' block and selected the 'Click Method.' This method allows you to click on the element.

## Method 2
Connect the 'Click UI element' block to the 'Find UI element' Block. Then select the method 'Invoke' in the 'Click UI Element' block.

You can see that we used the 'Invoke' method in the 'Click UI Element' block.

**1.** We linked the 'Find UI Element' block to the 'Click UI Element' block instead of the 'Invoke UI Element' block. This allows us to click directly on the found element.

**2.** We choose the 'Invoke' method because it lets us interact with scrollable elements, even if they aren’t visible. This method enables scrolling in any direction to reach the element.

In this method, we used the 'Invoke' method in the 'Click UI Element' block to directly click on a found element, even if it's not visible.

By implementing these scrolling techniques, you can overcome the challenges to find desired elements and effectively interact with desktop elements, even when the 'Scroll to Find' option isn’t functioning as expected.

If you have any questions, contact our [Priority Support](mailto:prioritysupport@leapwork.com) team.
