Which of the following statement is correct regarding driver.close() and driver.quit() to close the application after test execution?

Using both driver.close() and then driver.quit() for closing one window will throws an compile time exception.
Using both driver.quit() and then driver.close() for closing one window will throw an compile time exception.
Using both driver.close() and then driver.quit() for closing one window, will cause the window to be closed and kills the instance of the driver
Using both driver.quit() and then driver.close() for closing one window, will kills the instance of the driver and close the application
Verified Answer
Correct Option - bc

To get all Infosys Certified Selenium with Python Automation Tester Exam questions Join Telegram Group https://rebrand.ly/lex-telegram-236dee

Telegram