Tell me how can you switch back from a frame?



Tell me how can you switch back from a frame?..

Answer / Hariom Narayan

To switch back to the default content (or parent frame) in WebDriver, you can use the `defaultContent()` method provided by Selenium WebDriver. This method switches focus to the default content, which is the HTML document before any frames were added.nnHere's an example of switching back from a frame:n```javandriver.switchTo().defaultContent();n```

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Automation Testing AllOther Interview Questions

Explain some disadvantages to manual software testing?

1 Answers  


What is a xpath?

1 Answers  


8. How we test web based application

1 Answers   Eka Software,


what is mutation testing ? when we are using this type of testing?

3 Answers   JVS,


Give some examples of priority – severity defect levels.

1 Answers  


What are the main differences between Loadrunner and QTP tools? Describe briefly a "real world" scenario that would make you use the first one versus the other? Thank you for your answers....

1 Answers  


Describe some problem that you had with automating testing tool.

1 Answers   Satyam,


Do you know what is selenese?

1 Answers  


Can any one give me the script for drag and drop or setselection functions ?like in a not pad i want to select 5 lines

1 Answers  


Is ui level testing possible?

1 Answers  


Manually in a page 10 check boxes is there.so 5 check box "on" and 5 check box "off" so using descriptive program how to know how many "on" and how many "off" plz help me this question answer?

1 Answers   IBM,


What criteria do you use when determining when to automate a test or leave it manual?

2 Answers  


Categories