Showing results for 
Search instead for 
Did you mean: 
New Member

PAD selectors do not work for JavaScript generated sites



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,


Memorable Member
Memorable Member

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?

New Member

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,

Memorable Member
Memorable Member

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. 

New Member

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.

Memorable Member
Memorable Member

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

Helpful resources

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Top Kudoed Authors
Users online (4,539)