cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dsibenik
New Member

PAD selectors do not work for JavaScript generated sites

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

5 REPLIES 5
fraenK
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?

dsibenik
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,
Davor

fraenK
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. 

dsibenik
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.

fraenK
Memorable Member
Memorable Member

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

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

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

Top Solution Authors
Top Kudoed Authors
Users online (2,794)