adspace


How is driver.close()command different from driver.quit command?

Answer Posted / Sulabh Sharma

driver.close() method only closes the current window or tab in the web browser, while leaving the WebDriver instance open for other test cases. On the other hand, driver.quit() method terminates the entire WebDriver session, including the browser and the WebDriver instance itself.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Have you created any framework?

1037


Do you know how to locate a link using its text in selenium?

985


what will be the first salary and what will be the hike in the salary?

929


What’s selenese?

920


How can you fetch an attribute from an element? How to retrieve typed text from a textbox?

1197