Complete the code to open a Chrome browser using Selenium WebDriver.
WebDriver driver = new [1]();The ChromeDriver class is used to launch the Chrome browser in Selenium.
Complete the code to navigate to a website URL in Selenium WebDriver.
driver.[1]("https://example.com");
The get() method loads a new web page in the current browser window.
Fix the error in the code to correctly close the browser window.
driver.[1]();The close() method closes the current browser window. 'quit()' closes all windows and ends the session.
Fill both blanks to create a test that opens Firefox and navigates to a URL.
WebDriver driver = new [1](); driver.[2]("https://example.com");
Use FirefoxDriver to open Firefox and get() to navigate to the URL.
Fill all three blanks to write a test that opens Edge, navigates to a URL, and closes the browser.
WebDriver driver = new [1](); driver.[2]("https://example.com"); driver.[3]();
Use EdgeDriver to open Edge, get() to navigate, and close() to close the browser window.