Skip to main content

Difference Between close() and quit() in Selenium Web Driver

In Selenium Web Driver both are use to close the browser by using script but both have different meaning in terms of use. we need to understand both because we need to use both of them in different time to execution of Test Cases.

driver.quit() is used to closed all the browser session which generated by the web driver. while driver.close() just closed the browser session on which Selenium Web Driver focusing that time.

You should use driver.quit() when you want to close your program because if you didn't close it then file will not release your memory because of that you can stuck in memory leak problem.

driver.close() and driver.quit() work in same way when Selenium Web Driver open only single window but if Selenium Web Driver open multiple windows then both behave differently.

Comments

Popular posts from this blog

What is API?

In general way, API (Application Programming Interface) is the intermediate software which is useful for two applications to communicate. API is the tool which is used for interaction of two applications. If developer developing any software which have multiple blocks (Modules) than developer use APIs to put them together.

How to Put Load on a Script in JMeter

In last post we discussed about how to record a test script and Firefox settings to run the script. In this post we will discuss about how the Thread Group will work, how can we put n number of users to perform load testing, In JMeter by using Thread Group, we can create virtual users. Thread Group is a set of thread which work in same scenario. There are multiple thread group are available which is use to configure how the virtual users interest with the application, How much load maintain and till how much time load maintain.

JMeter Overview Description

In this article we will go through the multiple section of JMeter and describe the tool information. we will discuss about every component of JMeter tool in this Article so that you can hands on while working on script on JMeter about these components.