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 handle ajax calls in selenium webdriver?

0 Answers  


What is XPath? How does it work?

0 Answers  


What methods of robot class do you know?

0 Answers  


Tell us what kinds of test types are supported by selenium?

0 Answers  


Tell me how colors could be handled in selenium webdriver?

0 Answers  






What is the selenium's recording language?

0 Answers  


Enlist the components of selenium.

0 Answers  


What automation tools could be used for post-release validation with continuous integration?

0 Answers  


Difference between @findByMethod and @findelement?

3 Answers   HCL,


Which webdriver implementation claims to be the fastest?

0 Answers  


How you can login into any site if it’s showing any authentication popup for password and username?

0 Answers  


what is your approach clicking all the links which are available on the page?

0 Answers  


Categories