difference between Close() and Quit()?

Answers were Sorted based on User's Feedback



difference between Close() and Quit()?..

Answer / girishkumar

Close() - Will close the current window.
Quit() - will close all the windows.

Is This Answer Correct ?    23 Yes 0 No

difference between Close() and Quit()?..

Answer / raghu varma penmetsa

if we write driver.close() it will close the current application
if we write driver.quit() it will close current application along with surrounding applications

Is This Answer Correct ?    6 Yes 0 No

difference between Close() and Quit()?..

Answer / chetan phani.j

close() is used to close the current window or Parent window.
quit() is used to close all the windows opened by Selenium.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

How to fetch the current page url in selenium?

0 Answers  


How can we capture screenshots in selenium?

0 Answers  


Is QC and Jira used by both automation and as well as manual test engg or both tools are used by only manual test engg .

1 Answers   Thomson Reuters,


What are the testing type supported by selenium webdriver?

0 Answers  


Write the code to right click an element in selenium?

0 Answers  






What methods of robot class do you know?

0 Answers  


In selenium ide what are the element locators that can be used to locate elements on web page?

0 Answers  


How many exceptions do you know in selenium webdriver?

0 Answers  


What are the different types of waits available in webdriver?

0 Answers  


How you are integrating cucumber feature files with step files?

0 Answers  


Explain how you can use recovery scenario with selenium?

0 Answers  


What is an explicit wait in selenium?

0 Answers  


Categories