cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
New Member

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
Highlighted
Super User IX
Super User IX

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

@rajfivestar , is you frame name is framename ?

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
My Recent Blog -Week is not so Weak Connect on Linkedin

Proud to be a Super User!

Highlighted
New Member

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

@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.

 

Highlighted
Microsoft
Microsoft

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

Hi @rajfivestar,

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

Helpful resources

Announcements
Meet the 2020 Season 2 Power BI Super Users!

Meet the 2020 Season 2 Power BI Super Users!

Find out who's part of the program this season, and welcome the new Super Users.

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

July 2020 Community Highlights

July 2020 Community Highlights

Learn about the exciting things that happened in July.

Featured Data Story of The Month

Featured Data Story of The Month

All Data Stories Gallery contributions are reviewed for each month. We select a contribution and feature the community member the following month.

Power BI Dev Camp - Developing with .NET Core

Power BI Dev Camp - Developing with .NET Core

Learn how to develop custom web applications for Power BI using .NET Core 3.1 and .NET 5.

Top Solution Authors
Top Kudoed Authors