How driver.close() and driver.quit() commands are different from each other in Selenium?

0 votes
May 7, 2019 in Selenium by Pallavi
742 views

1 answer to this question.

0 votes

Hello Pallavi, Selenium WebDriver’s close() command closes the web browser window that the user is currently working on or the window that is being currently accessed by the WebDriver. No input parameters are required for this command and it also doesn't return any value. 
While quit() command closes down all the windows that the program has opened. It is somewhat similar to the close() command as this also doesn't requires any parameter and does not return any value.

answered May 7, 2019 by Anvi
• 14,110 points

Related Questions In Selenium

0 votes
1 answer

How are 'Selenium-server-standalone.jar' and 'Selenium Client & WebDriver' different from each other?

Okay, your understanding of "Selenium Server" & ...READ MORE

answered Apr 6, 2018 in Selenium by nsv999
• 5,520 points
1,656 views
0 votes
1 answer
0 votes
2 answers

How different/ similar are Protractor and Selenium? Which is better?

Protractor and Selenium both are used to ...READ MORE

answered Jun 9, 2019 in Selenium by Amod Mahajan
2,563 views
0 votes
1 answer

How do i change the location where my file gets downloaded in Selenium Webdriver and firefox driver?

There are a couple of errors there. ...READ MORE

answered Apr 12, 2018 in Selenium by nsv999
• 5,520 points
3,624 views
0 votes
2 answers

Finding WebDriver element with Class Name in java

The better way to handle this element ...READ MORE

answered Apr 10, 2018 in Selenium by nsv999
• 5,520 points
4,028 views
0 votes
2 answers

Problem while using InternetExplorerDriver in Selenium WebDriver

enable trusted connection  in internet explorer by ...READ MORE

answered Aug 31 in Selenium by Sri
• 2,970 points
4,978 views
0 votes
1 answer

Geo-location microphone camera pop up

To Allow or Block the notification, access using Selenium and you have to ...READ MORE

answered May 11, 2018 in Selenium by Samarpit
• 5,890 points
2,918 views
0 votes
2 answers

How to use such xpath to find web elements

xpath are two types. 1) Absolute XPath:    /html/b ...READ MORE

answered Sep 2 in Selenium by Sri
• 2,970 points
3,350 views
0 votes
1 answer

How to install and configure Gecko Driver in Selenium?

Hello Abhishek, follow these steps to install ...READ MORE

answered May 13, 2019 in Selenium by Anvi
• 14,110 points
447 views
0 votes
1 answer

How MaxSessions are different from MaxInstances properties of Selenium Grid?

Hello Palak, MaxInstances is the no. of browser ...READ MORE

answered Jun 23, 2019 in Selenium by Anvi
• 14,110 points
1,140 views