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 ?    22 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

What are the different types of navigation commands?

0 Answers  


In selenium what are breakpoints and startpoints?

0 Answers  


What are the different types of drivers available in webdriver?

0 Answers  


Describe the purpose of xpath.

0 Answers  


In selenium ide, give the usage of context menu?

0 Answers  






What are the advantages of selenium as a test tool?

0 Answers  


How will you find an element using selenium?

0 Answers  


@timeouts ||= Timeouts.new(@bridge) what does it mean?

0 Answers  


Which browsers can selenium ide be run in?

0 Answers  


Have you created any framework?

0 Answers  


Tell me how can you handle network latency using selenium?

0 Answers  


How does u get the width of the textbox?

0 Answers  






Categories