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 Platform Community / Forums / Power Automate / How to use aria label ...
Power Automate
Unanswered

How to use aria label in CSS selector?

(0) ShareShare
ReportReport
Posted on by 20

Hi,

 

Is there a way to use "aria-labelledy" in CSS selector? Pictures attached.

 

I need this selector as a final result: div [ARIALABEL="js_2ck-7-2023"]> div > div > div > div[Text="31"]

Screenshot 2023-09-12 141619.png
I have the same question (0)
  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    It has never worked for me, as much as I'd like it to. PAD simply does not work with these parameters at all - it is not able to either be used in UI element selectors, or extracting data using it in the CSS selector.

     

  • FlashDota Profile Picture
    20 on at

    If you open the picture attached, you can see there is a h2 with the same ID. Is there a way to reference that h2?

    I tried this: div > div > h2 [id=""] > div > div > div[Text="31"] but it isn't working

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Well, the Id is not empty. So, what you should be doing is pass the "js_2ck-7-2023" as the Id of the <h2> element like this (not that I've verified the rest of the structure):

    div > div > h2[id="js_2ck-7-2023"] > div > div > div[Text="31"]

     

    I can't really see any <div> elements under the <h2> though, so it might be that it's failing because you're not targeting the correct child element.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss it.

  • FlashDota Profile Picture
    20 on at

    Yes, sorry maybe I didn't make myself clear. I don't leave the id blank,

    I also used this: div > div > h2[id="js_2ck-7-2023"] > div > div > div[Text="31"] but it isn't working

     

    ps: Result here is "1" but same div for "31", just goes from 1 to 31 (calendar)

     

    FlashDota_1-1694523006801.png

    FlashDota_2-1694523163014.png

     

     

  • Agnius Bartninkas Profile Picture
    Most Valuable Professional on at

    Well, the <h2> is not really a parent of the <div> you need. It's a sibling, so that won't work. I would suggest trying to find a direct parent you can use for reference.

    -------------------------------------------------------------------------
    If I have answered your question, please mark it as the preferred solution. If you like my response, please give it a Thumbs Up.

    I also provide paid consultancy and development services using Power Automate. If you're interested, DM me and we can discuss 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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 589

#2
Valantis Profile Picture

Valantis 328

#3
David_MA Profile Picture

David_MA 284 Super User 2026 Season 1

Last 30 days Overall leaderboard