difference between Close() and Quit()?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Which files can be used as data source for different frameworks?

1164


Does the selenium have any limitations?

566


List out the names of programming languages, browsers and operating systems that are supported by selenium.

535


Are you familiar with selenium? If yes, what is it?

912


Explain why to choose python over java in selenium?

558






Tell us how to perform right click using selenium webdriver?

524


Can you use Selenium to test the Rest API or Web services?

576


Explain the fundamental difference between xpath and css selector.

608


Please explain what are the different types of locators in selenium?

543


What does a single “/” bar in XPath do?

622


Tell me could cookies be deleted in selenium?

570


Explain how you will login into any site if it is showing any authentication popup for username and password?

640


Explain dataproviders in testng using an example. Can I call a single data provider method for multiple functions and classes?

551


What distinguishes between an absolute and relative url in side?

571


How do you set user extensions in selenium ide?

588