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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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");

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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