Skip to main content
Question

find window in window

  • August 12, 2025
  • 6 replies
  • 47 views

Forum|alt.badge.img+1

I'm encountering an issue in the bot. Whenever I click on the "Preview" button while working in the Bot Editor, I receive the error shown in the screenshot above.

Has anyone else experienced this? Any suggestions on how to resolve it would be greatly appreciated.

6 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • August 12, 2025

@latha212 This is an unusual action. What specifically are you trying to do? Most people end up using “Find image in window”. 

Starting from our home page, I captured the “Schedule a demo” button. This is what I have for my parameters:

When I pressed Preview, a window appeared but it didn’t appear quite right. (Could have been my fault since I’m using Firefox for my control room and Chrome as my automation browser.) Things seemed to work though. 


Forum|alt.badge.img+4
  • Navigator | Tier 3
  • August 13, 2025

I'm encountering an issue in the bot. Whenever I click on the "Preview" button while working in the Bot Editor, I receive the error shown in the screenshot above.

Has anyone else experienced this? Any suggestions on how to resolve it would be greatly appreciated.

The “Window in Window” action expects a static reference to a window or control.

Window Title fields must be literal strings, not expressions.

Replace any dynamic expressions with hardcoded values in the field.

  • Example: Use this "MainWindow"

  • Avoid: $windowName$


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • August 13, 2025

Thank you for the response.

Just to clarify — I’m already using a string, not an expression, in the Window Title field. Please let me know if there’s anything else I should check.

 

 


Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+14
  • Automation Anywhere Team
  • August 13, 2025

@latha212 Is there is a dollar sign in the window title? The quotes (« ») don’t seem to cause the problem in my test.  

Have you tried the “Find image in Window” action?


Forum|alt.badge.img+4
  • Navigator | Tier 3
  • August 14, 2025

Thank you for the response.

Just to clarify — I’m already using a string, not an expression, in the Window Title field. Please let me know if there’s anything else I should check.

 

 

You should try “Find image in Window” action


Shreya.Kumar
Pathfinder Community Team
Forum|alt.badge.img+14
  • Pathfinder Community Team
  • October 6, 2025

@latha212 if any of these suggestions helped, please mark them as Best answer, thanks