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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.