How do you handle frames



How do you handle frames..

Answer / 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

More Selenium Interview Questions

How do you add check points or verification points in selenium?

0 Answers  


How to upload a file in selenium webdriver?

0 Answers  


How to handle a dropdown in selenium webdriver? How to select a value from dropdown?

0 Answers  


What is an explicit wait in selenium?

0 Answers  


How to handle frame in webdriver?

0 Answers  






Which is the only browser that supports selenium ide to be used?

0 Answers  


Explain the line of code webdriver driver = new firefoxdriver()?

1 Answers  


What are selenium tests normally named (as displayed at the top of each test when viewed from within a browser)?

0 Answers  


What programming languages are you able to use in selenium rc?

0 Answers  


Explain what does @test(invocationcount=?) And @test(threadpoolsize=?) Indicate.

0 Answers  


What is same origin policy and how it can be handled?

0 Answers  


What are junit annotations?

0 Answers  


Categories