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 can we move to a particular frame in selenium?

501


Can we use selenium rc for tests driving on two different browsers on one operating system without selenium grid?

508


How to connect a database in selenium?

483


What is the difference between implicit wait and explicit wait?

484


How to mouse hover on a web element using webdriver?

465






How will you find an element using selenium?

498


How many exemptions do you know in selenium webdriver?

497


What is the difference b/w close () and quit ()?

554


What is automation testing?

505


Describe technical problems that you had with selenium tool?

491


Tell me what is a node in selenium grid?

502


Tell me how to verify tooltip text using selenium?

464


If one wanted to display the value of a variable named answer in the log file, what would the first argument to the previous command look like?

484


Mention why do you need session handling while working with selenium?

500


List some advantages of test automation?

542