How do you handle frames

Answer Posted / surya

driver.switchTo().frame() -> using this we can handle frames in selenium webdriver.
There were mainly three ways of switching between Iframes.
•By Frame Index
•By Frame ID or Name
•By Frame WebElement


for more details refer this link:
http://toolsqa.com/selenium-webdriver/interact-with-elements-inside-an-iframe/

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to delete browser cookies with selenium web driver?

551


What is the purpose of creating a reference variable- ‘driver’ of type

551


How can it be found if an item is displayed on the screen?

598


How would you test your element locator?

568


Explain what is the difference between borland silk and selenium?

584






What are startpoints and breakpoints in selenium?

567


What type of tests have you automated?

595


What are the different types of waits available in webdriver?

571


While injecting capabilities in webdriver to perform tests on a browser which is not supported by a webdriver what is the limitation that one can come across?

563


How to assert title of the web page?

615


How can you handle network latency using selenium?

574


What are the different types of wait statements in selenium webdriver?

3282


What is the object repository?

637


Name an api used for logging in java?

563


What test can selenium do?

624