cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
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
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
Resolver I
Resolver I

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?

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
Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

New Super Users

Meet the Power Automate Super Users!

Many congratulations to the Season 1 2021 Flownaut Crew!

New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Top Solution Authors
Users online (35,242)