Complete the code to close the current browser window.
driver.[1]();The close() method closes the current browser window that the driver is controlling.
Complete the code to close all browser windows and end the WebDriver session.
driver.[1]();The quit() method closes all browser windows and safely ends the WebDriver session.
Fix the error in the code to properly close all browser windows and end the session.
driver.[1]();To close all windows and end the session, use quit(). Using close() only closes the current window.
Fill both blanks to close the current window and then end the WebDriver session.
driver.[1](); driver.[2]();
First, close() closes the current window. Then, quit() ends the session and closes all remaining windows.
Fill all three blanks to correctly close the current window, then quit the session, and finally print a confirmation message.
driver.[1](); driver.[2](); System.out.println("[3]");
The code closes the current window with close(), ends the session with quit(), and then prints a confirmation message.