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 Platform Community / Forums / Power Automate / OCR Move to text faile...
Power Automate
Unanswered

OCR Move to text failed due to special character

(0) ShareShare
ReportReport
Posted on by 3

the text to find have "-" special character in it and what to expect on screen to appear also have this "-" and "|". It mean text to find and text on screen is identical. How to solve this problem because, I cant change the text on screen.

Both text to find and text on screen is dynamic and 
identical

I have the same question (0)
  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    Hi @muslimboutique 

     

    You need to expect that OCR might give you unreliable results in some cases.
    What I do in flows where OCR is needed to grab text that is not spyable:

     

    1. Test different OCR engines, in my case tesseract works best for my language

    2. Test with different image scaling in ocr action, i usually use value of 10 with tesseract.

    3. Expect that you will get cases where it fails and build logic to handle those cases

     

    And at the end - what are you trying to automate?

    Do you really need to use OCR instead of UI or web automation actions that allow you to work with text directly via code/ui/web elements?

  • muslimboutique Profile Picture
    3 on at

    I try this to click the ui element of webpage and it works. tr[Class="Polaris-IndexTable TableRow_1a850"] div[Class="yE4B3"]>a> span  

     

    But now I want to make this dynamic. tr[Class="Polaris-IndexTable TableRow_1a850"] div[Class="yE4B3"]>a> span[%Currentprouductname%]

     

    Example %Currentprouductname% is equal to mouse over text in image which i send

     

    And this is not working can your take a look into inspect element and tell me how to write this correctly

    IMG_20221123_173702.jpg
  • momlo Profile Picture
    1,527 Super User 2024 Season 1 on at

    You need to access the text element with :Contains()

    Note you will need to toggle the "text editor" switch to be able to amend this.

     

    Example:

    span:contains("Documentation")

     

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 474

#2
11manish Profile Picture

11manish 268

#3
David_MA Profile Picture

David_MA 243 Super User 2026 Season 1

Last 30 days Overall leaderboard