difference between Close() and Quit()?

Answer Posted / girishkumar

Close() - Will close the current window.
Quit() - will close all the windows.

Is This Answer Correct ?    23 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

We do create a reference variable ‘driver’ of type webdriver

488


What are some expected conditions that can be used in explicit waits?

487


Do you know a way to refresh browser by using selenium?

468


How do you get the attribute of the web element?

487


What happen if you mix both implicit wait and explicit wait in a selenium script?

468






What is the difference between “/” and “//” in xpath?

561


List major difference between protractor vs selenium?

498


Explain how to assert text of webpage using selenium 2.0?

505


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

471


What is the difference between borland silk and selenium?

519


How a text written in a text field could be cleared?

478


What kinds of tests can be run with the selenium framework?

477


In selenium ide, give the usage of context menu?

580


What are driver.close and driver.quit in WebDriver? Which is more preferable?

494


How to perform right click action (context click) in selenium webdriver?

481