Skip to main content
Solved

Recorder actions in If condition

  • September 17, 2025
  • 11 replies
  • 76 views

Forum|alt.badge.img+4

Hi,

 

I have a portal, i am opening the portal and in loop 120 times i have given 3 if conditions so that the bot can wait till the portal loads.

 

The conditions are 

If window with the same title exists and If a label exists in that window and if Refresh button exists
exit loop if all these conditions are satisfied

The portal has loaded completely, the label exists, window title exists and the refresh button also exists . But its waiting for the loop to finish and stops saying the portal has not loaded.
This is happening after the recent update of the edge portal,the portal version is the same and the resolution is the standared

why is it not recongnising?

Best answer by Poornima ravi

We updated the recorder package and recaptured the recorder commands, it works fine now

11 replies

Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • September 17, 2025

Hi ​@Poornima ravi,

Even if the portal looks fully loaded, AA360 may fail to “see” objects if any of the following changed under the hood:

  • Tab/window title text changed (Edge often tweaks the suffix: e.g., " - Microsoft Edge" → " - Work - Microsoft Edge").
  • DOM attributes for your label/refresh button changed (IDs/classes get regenerated, elements switch from <label> to <div>/<span>, etc.).
  • The target moved inside an iframe or shadow DOM (AA won’t find it unless you switch context).
  • The Automation Anywhere Edge extension lost its connection after the Edge update (AA then can’t read the DOM reliably).
  • The page is a SPA (React/Angular) — document.readyState = "complete" happens before your controls are actually attached or become visible.

 

Check the below things first:

 

  1. Edge extension status

    • In AA Bot Agent (system tray) → Extensions → confirm Microsoft Edge shows Connected.
    • In Edge, the Automation Anywhere extension is OnAllow in private (if used), and Site access is allowed for your portal domain.
  2. Window/tab title change

    • Manually read the exact tab title in Edge. If it now ends with " - Work - Microsoft Edge" or a profile name, your “Window with same title exists” will fail.
    • Fix: Use partial match or wildcards:
      • Window: If window exists → Match = Contains → PortalName (avoid the Edge suffix altogether).
  3. Re-capture and test the objects

    • Recapture the label and Refresh button.
    • In the object definition, avoid volatile attributes (ID with GUIDs, dynamic class hashes). Prefer:
      • aria-labelrolename, stable innerTextdata-testidtitle, or relative xpath/css with contains().
    • Use Test Object in the Recorder to confirm it matches at runtime.
  4. Check for iframes or shadow DOM

    • Right-click → Inspect in Edge → see if target sits under <iframe> or a #shadow-root.
    • If shadow DOM: DOM-based selectors may fail; use Run JavaScript to pierce shadow roots or switch to Computer Vision as a fallback.

Forum|alt.badge.img+4
  • Author
  • Cadet | Tier 2
  • September 18, 2025

Hi

1.edge extension is on

2.i have already given it is *GPMS*

3.I have recaptured the recorder commands and already have disabled the paths

 

It still doesn’t recognize 


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • September 18, 2025

Hi

1.edge extension is on

2.i have already given it is *GPMS*

3.I have recaptured the recorder commands and already have disabled the paths

 

It still doesn’t recognize 

 

Could you please provide the URL so that I can try from my end once?

 


Forum|alt.badge.img+4
  • Author
  • Cadet | Tier 2
  • September 18, 2025

Hi 

 

i won’t be able to give the url.

regarding the 4th point i have attached the image.

 

does the recorder packages have to be updated?


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • September 18, 2025

Hi 

 

i won’t be able to give the url.

regarding the 4th point i have attached the image.

 

does the recorder packages have to be updated?

 

It seems like there is some issue in viewing your attachment.

 

 


Forum|alt.badge.img+4
  • Author
  • Cadet | Tier 2
  • September 18, 2025

 


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • September 18, 2025

 

 

Unfortunately, I am unable to reach any conclusion from this image. Are you using DOMXPath as the Object property? If so, is it customized? 


Forum|alt.badge.img+4
  • Author
  • Cadet | Tier 2
  • September 18, 2025

Yes , not customized but whatever the recorder has captured is enabled

The image is the inspect the element of the label


Padmakumar
Premier Pathfinder | Tier 7
Forum|alt.badge.img+15
  • Premier Pathfinder | Tier 7
  • September 19, 2025

Yes , not customized but whatever the recorder has captured is enabled

The image is the inspect the element of the label

For this reason only I had asked for the URL so that I can inspect it and try to create a custom DOMXPath. As you are using the default one, it can fail considering the dynamic behavior of the portal.


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

@Poornima ravi were you able to find a workaround?


Forum|alt.badge.img+4
  • Author
  • Cadet | Tier 2
  • Answer
  • October 7, 2025

We updated the recorder package and recaptured the recorder commands, it works fine now