cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

UI Test Automation and XPath

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

 

 

2 REPLIES 2
zmorek
Super User
Super User


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.

Anonymous
Not applicable

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.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,309)