Loading

MuleSoft RPA Builder: Web element clicks fail on pop-ups embedded in an iframe when Frame Hierarchy is not set

Date de publication: Nov 5, 2026
Description
Steps to Reproduce
  1. In RPA Builder, create a web automation workflow that logs in to a web application and opens a page with a report export pop-up. The pop-up is rendered inside an iframe.
  2. Add a Click Web Element step on a button inside the pop-up (for example, "Generate Report"). Use an absolute XPath or a selector prefixed with the iframe node, and leave Frame Hierarchy empty.
  3. Run the workflow in Chrome.


Observed behavior: Steps before the pop-up work. The click on the pop-up button fails. An Image Search fallback also times out.
Expected behavior: The bot clicks the pop-up buttons and triggers the file download, as a user would manually.

Steps were reconstructed from the escalation description, because the record lists no explicit reproduction steps ("N/A").

Error Message
Click action command failed. The assigned element could not be found. (err: 1080) — no such element: Unable to locate element: {"method":"xpath","selector":"[XPath of element]"}
Timeout reached while waiting for picture to appear.
Résolution
Workaround
  1. Set Frame Hierarchy on the failing step so it enters the iframe. Re-record the step with the Web Automation Wizard against the live pop-up rather than copying the frame path from another step.
  2. Keep the selector plain and relative to the frame. Don't include the iframe node in the selector.
  3. Replace absolute XPaths and auto-generated dynamic IDs with stable attributes (such as title, name or type) or visible text.
  4. Remove leftover older steps that target stale or dynamic IDs.
  5. Make sure the window-title matching on the pop-up steps is correct, or turn it off.
  6. Avoid Image Search for this pop-up, because watermarks or overlays can defeat it.
  7. Add a short wait for the pop-up to render before the click.


This may not apply to all scenarios. 
Numéro d’article de la base de connaissances

005466146

 
Chargement
Salesforce Help | Article