cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
peterelbek
Regular Visitor

Dynamic selector

Really struggling using a web automation action that clicks link / UI element in Edge.

 

Using the Inspect tool in Edge, the selector is:

body > div.spa-container > div:nth-child(6) > form > div > div.ms-nav-layout-content.thm-cont-g0-bgcolor-1 > nav > div > div > nav > div.navigation-bar-row-container--1bEQIeDuoWP7xAdsmp4MFs.home-action-container--2Ldy4iTiUBKOd3EbS4fRW6 > div > div.ms-nav-layout-content > div > div > div > div.ms-FocusZone.row-responsive--1x5-qMvE_ZVev_4FpmgaWk > div > div > div:nth-child(5) > div > button > div.caption--20PrttGVw_09n9_mM8YKgm > span > span

and the outerHTML is: 

<span aria-label="Salg">Salg</span>

 

In the UI Builder tool of PA Desktop I've tried 287 variations (mind you I'm no expert on the syntax) including this simple version:

span[aria-label="Salg"]

 

 Can someone explain what I'm doing wrong and steer me the right way? Thank you, much appreciated.

1 ACCEPTED SOLUTION

Accepted Solutions
peterelbek
Regular Visitor

Going to close this and rephrase question in new post based on new ideas on how to tackle it.

View solution in original post

3 REPLIES 3
Henrik_M
Super User
Super User

Can you CTRL+S and save the web page, then upload it somewhere for me to check? Send me a private message.

Hi @Henrik_M 

 

Just after realising that the source HTML includes a script:

 

<script id="boot" src="/365v22web/boot/browser/desktop?company=Standard&amp;tenant=365v2120181106094522&amp;aid=fin&amp;dc=0&amp;signInRedirected=1" type="text/javascript"></script>

 

No expert, but I suppose this script generates the output? As I mentioned in the forum I'm able to inspect the various UI elements, but maybe PAD can't access in the end because of this script?

peterelbek
Regular Visitor

Going to close this and rephrase question in new post based on new ideas on how to tackle it.

View solution in original post

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Top Solution Authors
Users online (2,734)