top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

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

+1 vote
454 views
What is the difference between driver.close() and driver.quit command?
posted Oct 25, 2016 by Jdk

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

+1 vote

close():

WebDriver’s close() method closes the web browser window that the user is currently working on or we can also say the window that is being currently accessed by the WebDriver. The command neither requires any parameter nor does is return any value.

quit():

Unlike close() method, quit() method closes down all the windows that the program has opened. Same as close() method, the command neither requires any parameter nor does is return any value.

answer Nov 2, 2016 by Manikandan J
...