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 Automate
Answered

Dynamic selector

(0) ShareShare
ReportReport
Posted on by 13

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.

I have the same question (0)
  • Henrik_M Profile Picture
    2,021 Super User 2024 Season 1 on at

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

  • peterelbek Profile Picture
    13 on at

    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?

  • Verified answer
    peterelbek Profile Picture
    13 on at

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

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

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Valantis Profile Picture

Valantis 410

#2
Vish WR Profile Picture

Vish WR 289

#3
David_MA Profile Picture

David_MA 282 Super User 2026 Season 1

Last 30 days Overall leaderboard