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 Apps / UI Test Automation and...
Power Apps
Unanswered

UI Test Automation and XPath

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a canvas app and my QA team is trying to write UI tests to automate the app user scenarios.  My first page is a list page with 2 galleries.  This was controlled by a toggle button.  But now I need to offer two filters on one of the galleries.  So I added a combobox to show 3 options.  And if one option is chosen then one list shows up.  Otherwise if option 2 or 3 are chosen the first list will appear with a filter of one or another set of data to keep users from hitting the 2000 limit.

 

When I changed the UI from a toggle to a combobox my UI tester informs me that on the next page the xpaths are now changed and in one case showing up 30 times instead of just once.  Is there a way to control this or at least debug this. 

 

The monitor before was only showing 4 actions when I clicked the button to get to the second page and to select the item in question. 

DDucolonSBUX_1-1631054268851.png

 

However after adding the comboBox I get this in the monitor for the same two clicks.  Not sure how to stop lookups and refreshes to happen when I am not even on that page.  Any help is appreciated.

 

DDucolonSBUX_2-1631054399236.png

 

 

Categories:
I have the same question (0)
  • zmorek Profile Picture
    3,272 on at

    However after adding the comboBox I get this in the monitor for the same two clicks.  Not sure how to stop lookups and refreshes to happen when I am not even on that page.  Any help is appreciated.

    I don't have a direct answer for the rest of the questions, but if I'm interpreting this correctly, there's controls loading on another screen (or even the same screen, just hidden) and you don't want them to?

    In the settings of the app, try going to Upcoming Features > Experimental > turn on "Enhanced performance for hidden controls"

    zmorek_0-1631054701904.png

     

    Sorry if I misunderstood, just wanted to try and jump in.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thanks but I already have that feature turned on.  So instead I will try turning off the "keep recent screens visited in memory" in case they are refreshing data in the background.

     

    Still looking to know any way to control or predict the xpath of the resulting canvas UI.

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 Apps

#1
Vish WR Profile Picture

Vish WR 915

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 457

Last 30 days Overall leaderboard