web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / PowerApps testing with...
Power Apps
Unanswered

PowerApps testing with iFrames

(0) ShareShare
ReportReport
Posted on by 9

I'm trying to use Power Automate desktop to test my PowerApps. However, when I try to use Power Automate desktop to click a page element with a selector such as: 
#spLeftNav > div.ms-FocusZone.css-81 > nav > div > div > ul > li:nth-child(3) > div > a

My test fails because the HTML element is within and iFrame. How can I access the PowerApps UI element even though they are contained within an iFrame? 

Categories:
I have the same question (0)
  • rubin_boer Profile Picture
    4,841 Super User 2024 Season 1 on at

    hi @Jsquared just a quick question did you use the web recorder or ui automation components. often the iframes do not work with the web recorder. by using the ui components the automation seems much better.

     

     

  • Jsquared Profile Picture
    9 on at

    Yes @rubin_boer I have used the UI components. You are correct, the Web recorder does not work with iFrames. But I have found the UI component very unreliable. So, I want to start to create my own selectors. A workaround for this would be to simply visit the iFrame url. However, I have tried this and it does not work =( The url looks something like this: 

     

    <iframe class="publishedAppIframe" tabindex="0" aria-hidden="false" id="fullscreen-app-host" scrolling="no" frameborder="0" name="fullscreen-app-host" src="https://pa-content.azureedge.net/resource/webplayerdynamic/publishedapp/preloadindex?preloadIndexPath=https%3A%2F%2Fcontent.powerapps.com%2Fresource%2Fapp%2Ft7tv66lp87kbf%2Fpreloadindex.web.html&amp;PowerAppsLanguage=en-US&amp;loader=inline&amp;lv=724pdq00ui8j4&amp;serviceWorkerUrl=https%3A%2F%2Fpa-content.azureedge.net%2Fresource%2Fwebplayer%2Fhashedresources%2F9d51pg38963fb%2Fjs%2FPowerAppsServiceWorker.PublishedApp.js&amp;piv=796D32DE&amp;featureGates={&quot;publishedAppServiceWorker&quot;:false}#%7B%22platform%22%3A%22notwindows%22%2C%22hideNavBar%22%3A%22true%22%2C%22antiCSRFToken%22%3A%227338ecae-6076-4975-a638-dcb7a69377c5%22%2C%22cdnUrl%22%3A%22https%3A%2F%2Fcontent.powerapps.com%2Fresource%2Fapp%22%2C%22paramsQuery%22%3A%22tenantId%3D554969da-6027-40e0-ade5-0e2e47ebee54%26source%3Dportal%26screenColor%3Drgba%280%252C%2520176%252C%2520240%252C%25201%29%26appId%3D%2Fproviders%2FMicrosoft.PowerApps%2Fapps%2Fd3dsfeaf4-4f5d-44sf1-8385-88ffd85925115%22%2C%22iframeMode%22%3Anull%2C%22packagePropertiesVersion%22%3A%222.1%22%2C%22staticContentProxy%22%3A%22https%3A%2F%2Fcontent.powerapps.com%2Fresource%2Fwebplayerdynamic%2Fproxy%2Fstaticcontent%3FstaticContentPath%3D%22%2C%22launchFunctionUrlFormat%22%3A%22https%3A%2F%2Fapps.powerapps.com%2Fplay%2F%7B0%7D%22%2C%22region%22%3A%22prod%22%2C%22staticContentUrl%22%3A%22https%3A%2F%2Fstatic.powerapps.com%22%7D" allow="geolocation; microphone; camera; fullscreen" style="" title="ConcurrentWorkflow"></iframe> 

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 739 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard