web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Automate
Suggested Answer

UI element Issue

(2) ShareShare
ReportReport
Posted on by 90
Hi All,
I am running a bot in unattended mode. For some UI elements( Eg: CLIENT VIEW), the bot is unable to identify them when using the 'Click UI element in window' action. OCR-based actions also fail in unattended mode. The 'Move mouse to image' action works occasionally, but most of the time it throws an error. Please guide me on how to resolve this issue. Thanks in advance!
I have the same question (0)
  • Suggested answer
    Jon Unzueta Profile Picture
    1,834 Super User 2026 Season 1 on at
    Hi @DN1
     

    Running bots in unattended mode can sometimes be tricky, especially when dealing with UI elements and OCR-based actions. Here are some steps and best practices to help resolve these issues:

    1. Service Mode Installation: Ensure that the bot is installed in service mode. This is crucial for unattended automation as it allows the bot to run with the same rights as the user under which it is registered.

    2. Screen Resolution and Visibility: Unattended bots often fail to interact with UI elements if the screen resolution changes or if the screen is not visible. Make sure the screen resolution is set correctly and that the bot has access to the session.

    3. UI Element Identification: For the 'Click UI element in window' action, try using more robust selectors. Ensure that the selectors are dynamic and can adapt to changes in the UI.

    4. OCR Actions: OCR-based actions require the screen to be visible to capture the text. Since OCR might not work well in unattended mode, consider using alternative methods like selectors or data scraping techniques.

    5. Move Mouse to Image: This action can be unreliable in unattended mode due to changes in screen resolution or visibility. Ensure that the images used are clear and distinct. Adding waits or delays before this action can sometimes help.

    6. Error Handling and Logging: Implement detailed error handling and logging to capture the exact issues. This can help in diagnosing why certain actions fail and provide insights for troubleshooting.

    7. Testing and Debugging: Run the bot in attended mode to identify any issues and then switch to unattended mode. Compare the behavior and make necessary adjustments

  • cwischnewski Profile Picture
    160 on at
    One thing I have used on occasion when actions behave unexpectedly in unattended mode, add some extra error handling, retry with a slightly different selector, try a wait for element before trying to interact with it or even just a simple short wait, and if all that still fails use the Take screenshot action naming the screenshot file something helpful for reviewing failures.
  • DN1 Profile Picture
    90 on at
    Hi @Jon Unzueta, Thank you very much for your detailed response. I'm currently facing an issue where Power Automate Desktop is unable to recognize a specific UI element(Eg: Client view)during identification. As a workaround, I tried using the Move mouse to image action, but it frequently fails. I also attempted to use OCR, but it doesn’t work reliably in unattended mode. Would it be possible to use the Recording options to interact with the element instead? Any suggestions or alternative approaches would be greatly appreciated.
  • Suggested answer
    Jon Unzueta Profile Picture
    1,834 Super User 2026 Season 1 on at
    Hi!  @DN1

    I understand how challenging it can be when Power Automate Desktop doesn't recognize a specific UI element. Here are some suggestions that might help:

    1. Use the Recording Feature: Power Automate Desktop's recording feature can be very useful for interacting with UI elements. You can record the actions you want to automate, and the recorder will track mouse and keyboard activity in relation to UI elements. Here's how you can do it:

      • Create a new desktop flow and select the Recorder option in the toolbar.
      • Click on "Record" and perform the desired actions in the application or webpage.
      • Once done, click "Done" to convert the recorded steps into desktop flow actions.
    2. Verify UI Element Selectors: Ensure that the selectors for the UI elements are accurate and haven't changed. You can use the UI element picker to capture and validate the selectors.

    3. Recapture the UI Element: Sometimes, recapturing the UI element can resolve recognition issues. Try capturing the element again and replacing it in the action .

    4. Edit Selectors Manually: If the selectors are dynamic, you might need to edit them manually to make them more robust.

    5. Check Element Availability: Ensure that the UI element is available on the screen during the execution of the flow.

    6. Use UI Elements Pane: Manage and organize your UI elements through the UI elements pane in the flow designer. This can help you keep track of all the elements used in your flow .

    I hope these suggestions help! If you need further assistance or have any other questions, feel free to ask

    If the response is helpful to you, a like or mark as the correct solution. thank you so much!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 569

#2
Valantis Profile Picture

Valantis 484

#3
Vish WR Profile Picture

Vish WR 460

Last 30 days Overall leaderboard