difference between Close() and Quit()?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you redirect browsing from a browser through some proxy?

1180


Write the code to right click an element in selenium?

489


How will you find an element using selenium?

500


What selenese command and argument can be used to transfer the value of a javascript variable into a side variable?

4264


Do you know how to debug the tests in selenium ide?

468






Tell me could cookies be deleted in selenium?

486


Can captcha and bar code reader be automated by using selenium?

469


What is the difference between “type” and “type and wait for” command?

519


How to assert the title of the web page?

482


What will be the limits of selenium?

509


What are some of the different ways to find an element using selenium as a tool?

476


How to run a group of test cases using testng?

491


Which are the browsers supported by selenium rc?

496


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

477


What is the difference between “/” and “XPath //”?

560