Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

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

  • Anonymous , is you frame name is framename ?

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

    • Anonymous's avatar
      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.

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        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