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
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

Difinity Conference 2022

Difinity Conference 2022

Register today for two amazing days of learning, featuring intensive learning sessions across multiple tracks, led by engaging and dynamic experts.

European SharePoint Conference

European SharePoint Conference

The European SharePoint Conference returns live and in-person November 28-December 1 with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Power Apps Ideas

Changes to Ideas Coming

We are excited to announce a new way to share your ideas for Power Apps!

Top Solution Authors
Top Kudoed Authors
Users online (1,522)