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

How to handle a dropdown in selenium webdriver?

0 Answers  


Which is the latest Selenium tool?

0 Answers  


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

0 Answers  


Tell me what is a hub in selenium grid?

0 Answers  


How to set test case priority in testng?

0 Answers  






Explain what does @test(invocationcount=?) And @test(threadpoolsize=?) Indicate.

0 Answers  


What is heightened privileges browsers?

0 Answers  


How can I click the div tag using xpath <div> <input> <input> <input> <input>.....suresh....</input> </input> </input> </input> </div>

4 Answers   Value Labs,


What does @test(invocationcount=?) And @test(threadpoolsize=?) Indicate.

0 Answers  


Enlist the components of selenium.

0 Answers  


Explain how you can find broken images in a page using selenium web driver?

0 Answers  


How to check if an element is visible on the web page?

0 Answers  


Categories