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 are selenium ide, webdriver and selenium rc different from each other?

0 Answers  


What are the regular expression patterns available in selenium?

0 Answers  


How you can use recovery scenario with selenium?

0 Answers  


How do I start the browser using WebDriver?

0 Answers  


List some of the programming languages that are strongly supported by selenium webdriver.

0 Answers  






What kind of keyboard operations can be performed in selenium?

0 Answers  


what are the four parameter you have to pass in selenium?

0 Answers  


How does testng allow you to state dependencies? Explain it with an example.

0 Answers  


How can you find if an element displayed on the screen?

0 Answers  


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

0 Answers  


what is the difference between absolute path and relative path?

0 Answers  


How to handle a dropdown in selenium webdriver?

0 Answers  


Categories