Explain how you can handle frames using selenium 2.0?



Explain how you can handle frames using selenium 2.0?..

Answer / Sanchi Gupta

Handling frames in Selenium 2.0 is possible through the `switchTo().frame(int frameIndex)` or `switchTo().frame(String frameName)` methods for switching to a specific frame by index or name respectively. To switch back to default content, use `switchTo().parentFrame()`.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

How you can insert a start point in selenium ide?

1 Answers  


How to fetch the current page url in selenium?

1 Answers  


How to scroll down a page using javascript in selenium?

1 Answers  


How can we maximize browser window in selenium?

1 Answers  


difference between Implicit Wait and Explicit Wait with syntax.?

8 Answers   HCL,


Tell me how you can find broken images in a page using selenium web driver?

1 Answers  


Write a code snippet to launch firefox browser in webdriver.

1 Answers  


Does the selenium ide have any drawbacks?

1 Answers  


Explain me how many types of webdriver apis are available in selenium?

1 Answers  


What are the steps to run automation using selenium?

1 Answers  


What is the purpose of the getoptions() method?

1 Answers  


How you can use recovery scenario with selenium?

1 Answers  


Categories