Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
Anonymous
Not applicable

Windows Application: Not able to Switch to iframe window nested inside the same window.

 
 

 

 

Firstly, I have tried driver.switchTo().frame("framename"); but it does not switching to that.

 

driver.switchTo().frame("xxx"); /// Throws an {"status":7,"value":{"error":"no such element","message":"An element could not be located on the page using the given search parameters."}}

 

Analysis: After dig into deeper, I found that the particular frame locators were not even present inside the page source. Any idea on how to switch to that frame.

 

P.S. I'm using WinApp driver.

Note: Same scenario in web, I'm able to switch using switchTo iframe elements. but not in desktop Power BI.

 

Any thoughts?

3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , is you frame name is framename ?

driver.switchTo().frame("framename");

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

@amitchandak Yes, It is. I have also changed frame 'automationID', frame 'className' etc... and tried, Still it does not switching to that. Seems it might be a new session i.e. that frame load.

 

Hi @Anonymous,

Could you please provide the screen shot with the error message? In addition, you can try to create an issue ticket on GitHub to get support from the related team.

Best Regards

Rena

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors