What is the difference between close() and quit()?



What is the difference between close() and quit()?..

Answer / Nitin Garg

"close() method closes the current tab or window in a browser, while quit() method shuts down the entire WebDriver instance (i.e., it stops the webdriver service and terminates all windows)."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

What are the advantages of selenium?

1 Answers  


What are some commonly encountered exceptions in selenium?

1 Answers  


Mention what is desired capability? How is it useful in terms of selenium?

1 Answers  


What is desired capability? How is it useful in terms of selenium?

1 Answers  


what is the use of x-path?

1 Answers  


What is a hybrid framework?

1 Answers  


What are the main advantages of selenium grid?

1 Answers  


Is the firefoxdriver a class or an interface?

1 Answers  


What do you know about Selenese?

1 Answers  


What is selenium 1.0?

1 Answers  


What is the syntax of finding elements by id using css selector?

1 Answers  


How you can debug the tests in selenium ide?

1 Answers  


Categories