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 ?    21 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 pass parameters using testng.xml?

0 Answers  


What is the difference between driver.getwindowhandle() and driver.getwindowhandles() in selenium webdriver?

0 Answers  


How to iterate through options in test script?

0 Answers  


How can we fetch title of the page in selenium?

0 Answers  


Does the selenium ide have any drawbacks?

0 Answers  






What are different forms of selenium?

0 Answers  


What are startpoints and breakpoints in selenium?

0 Answers  


in real time , which framework is used ? is it datadriven or keyword or hybrid ?? please answer

2 Answers   Cap Gemini,


How to get an attribute value using selenium webdriver?

0 Answers  


What are desiredcapabilities in selenium webdriver?

0 Answers  


how to upload file other than autoit

4 Answers   Collabera,


Tell me what is a node in selenium grid?

0 Answers  






Categories