How is driver.close()command different from driver.quit command?



How is driver.close()command different from driver.quit command?..

Answer / Sulabh Sharma

driver.close() method only closes the current window or tab in the web browser, while leaving the WebDriver instance open for other test cases. On the other hand, driver.quit() method terminates the entire WebDriver session, including the browser and the WebDriver instance itself.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Selenium Interview Questions

What are the challenges with selenium ide?

1 Answers  


What is testng and how is it better than junit?

1 Answers  


Mention what are the types of listeners in testng?

1 Answers  


How to resize browser window using selenium webdriver?

1 Answers  


What are some expected conditions that can be used in explicit waits?

1 Answers  


How can we inspect the web element attributes in order to use them in different locators?

1 Answers  


Hi can anyone suggest me what type of non technical questions asked in interview for experienced people, I am trying to get job with fake experience can anyone help me please

1 Answers  


Describe the purpose of xpath.

1 Answers  


How you can convert any selenium ide tests from selenese to another language?

1 Answers  


Explain in selenium ide how can you debug the tests?

1 Answers  


Which is the command used for displaying the values of a variable into the output console or log?

1 Answers  


How can you use the recovery scenario in selenium webdriver?

1 Answers  


Categories