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 / Web Page custom select...
Power Automate
Unanswered

Web Page custom selector not working

(0) ShareShare
ReportReport
Posted on by 9

I've built a custom selector
tr[class*="panel-list-row"]:contains(%CourseNameShort%):contains(%Trimester%)

This is working perfectly in some flows. I created a new flow and enabled Power-Fx preview. The same selector is not working in the newly created flows.

Any suggestions? What could be the possible reason?

I have the same question (0)
  • eetuRobo Profile Picture
    4,539 Super User 2026 Season 1 on at

    That's because you enabled Power Fx and the syntax is different. Power Fx variable syntax you use equals sign. So add = just before the variable name.
    Like so:
    div[Text="%=NewVar%"]

    eetuRobo_0-1707320119779.png

  • nabeelahmad1 Profile Picture
    9 on at

    I tried this, still the same issue.

     

  • cwischnewski Profile Picture
    162 on at

    I thought I read that you can't use variables in CSS selectors when you enable Power Fx.  But I also noticed that variable reference does away with the percent signs entirely.  So %MyVariable% would be =MyVariable now.  When I have done custom CSS Selectors, I have assigned the string of the selector to a variable and then in the UI Element I change it to just %MyVariable% with MyVariable being the string of the selector.  If that is what you are doing, the problem is that you can't change your UI Element to use a variable.

  • eetuRobo Profile Picture
    4,539 Super User 2026 Season 1 on at

    For me this works:

    eetuRobo_0-1707377011194.png

    @cwischnewski 
    I think it doesn't work if you only use the =MyVariable but you need to include the %-signs even though many times in Power Fx you don't use them.

    It might also be because I use the Text editor mode or because operator is not equal but contains.

     

    I think the problem might be contains() syntax. 

    Edit: I actually tried the contains and seems to work. 

    eetuRobo_2-1707377619703.png

    Also I noticed that it finds the element when I use Test but not in the actual flow. So as @cwischnewski  said I think using variables in Power Fx is not supported yet.

    Remember to use Text editor toggle on since otherwise the variables might not work with the UI elements.

    eetuRobo_1-1707377182599.png

     

    If you cant figure it out I recommend reconsidering usage of Power Fx and just making new flow without Power Fx(it will most likely give you more problems in the future too since its in preview and might be for a long time)

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!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Vish WR Profile Picture

Vish WR 664

#2
Haque Profile Picture

Haque 460

#3
Valantis Profile Picture

Valantis 357

Last 30 days Overall leaderboard