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 / PAD selectors do not w...
Power Automate
Unanswered

PAD selectors do not work for JavaScript generated sites

(0) ShareShare
ReportReport
Posted on by 4

Hi,

 

Our client is migrating their processes from ProcessRobot to Power Automate.


One of the processes involves interacting with a web portal which generates its elements (it is not a static page).

Even though the selector is correct (and it worked with PR) and the element exists, PAD can't find it.

 

It seems as though PAD loaded the page as it is initially and cached it, and in the moment of clicking it cannot find the selector on the page.

Trying to add another selector does not show the page elements on hover as well.

 

Is there a way around this, as we do not want to use 'Use JavaScript On Webpage' action, as it is hacky?

 

Kind regards,

Davor

I have the same question (0)
  • fraenK Profile Picture
    2,125 on at

    Sounds like a page loaded state issue?

    It seems PAD is not very good in detecting that the page has been fully loaded and is trying to access an element which doesn't exist yet.

    So I would add a check if the element/text exists before trying to access it...

    Maybe this helps? Can you post an example of your flow?

  • dsibenik Profile Picture
    4 on at

    Hi, thanks for the response!

    The template/flow is just

    1. Focus Browser (or Open browser on page)

    2. Click a button

    It doesn't work after putting wait for 2 minutes or after loading the page, and putting the first action 'Open Existing browser', so it is not a loading issue.

    PAD just doesn't recognize the site elements, even after loading, it shows the first initial version.

    The code worked on Softomotive tho, so something has to have changed.

    Kind regards,
    Davor

  • fraenK Profile Picture
    2,125 on at

    Then the website might have changed and you'll need to adapt the selector.

    If it is a browser cache is use, clear or disable it. 

  • dsibenik Profile Picture
    4 on at

    Unfortunately the website hasn't changed, I run the same code in PAD and in Winautomation, one works - the other doesn't.

    The same is with incognito windows, so it's not a browser cache issue, it must be a bug in PAD.

    Clueless how to fix it, it must be a bug.

  • fraenK Profile Picture
    2,125 on at

    Please check the selector for the element! Can you post an example?

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 Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 233

#2
David_MA Profile Picture

David_MA 217 Super User 2026 Season 1

#3
Valantis Profile Picture

Valantis 190

Last 30 days Overall leaderboard