Sri ram Kukkadapu’s Post

View profile for Sri ram Kukkadapu, graphic

Senior QA @ThoughtWorks | SAP MII | Selenium | Java | TestNG | Maven | POM | WebdriverIO | Rest API Testing | Postman | RestAssured | Appium | JMeter | Github CI | JIRA | SDET | Retail | Healthcare

#SDET Interview Preparation Batch: https://t.ly/dIJZm Essential Interview Questions related to #Frame for Selenium. What is iFrame ? HTML element that loads another HTML page within the documen. Basically frame will be use to embed another website page into main windows as a advertisment. Cross Question. How can you communicate between the main window and the frame windows in a web page containing multiple iframes? FYI- One main window can have multiple frame windows and every frame html tag contains attribute like Id,name. Question - How To handle Frame Window? Ans - In order to handle frame windows, we should pass a driver control to frame window before a action. There are 3 ways driver control can be pass. 1️⃣ driver.switchTo().frame(String) The parameter String can be either the name or the id attribute of the iframe element. 2️⃣ driver.switchTo().frame(int) The parameter int represents the index of the iframe in the order they appear in the HTML document. 3️⃣ driver.switchTo().frame(WebElement) It allows you to switch to the iframe by directly passing the WebElement representing it. Question- How do you switch back to the default content after interacting with elements inside a frame? Ans-driver.switchTo().defaultContent() method. Question- 1️⃣ How do you identify if a webpage contains frames? 2️⃣ How to work with multiple frame ? 3️⃣ How to work with nested frame ? 4️⃣ can we pass driver control from one frame to another ? 5️⃣ how to work when frame does not have id, name, attribute ? 6️⃣ What happens if you try to interact with an element without switching to its frame first? 7️⃣ ***What are the challenges you might face when automating a webpage with frames? 8️⃣*** What is the significance of the `NoSuchFrameException` in Selenium WebDriver? #interview #QAinterview #AutomationTesting

Sri ram Kukkadapu

QA Specialist at Thoughtworks

1mo

++

Like
Reply
Manish Pareek

QA || Manual || API || Mobile ||Automation

1mo

Great share!

Like
Reply
See more comments

To view or add a comment, sign in

Explore topics