Recall & Review
beginner
What is ChromeDriver in Selenium?
ChromeDriver is a separate executable that Selenium WebDriver uses to control the Chrome browser. It acts as a bridge between Selenium commands and the Chrome browser.
Click to reveal answer
beginner
How do you set up ChromeDriver in a Selenium Java project?
You download the ChromeDriver executable matching your Chrome version, set its path in your code using System.setProperty("webdriver.chrome.driver", "path/to/chromedriver"), then create a new ChromeDriver instance.
Click to reveal answer
intermediate
Why must the ChromeDriver version match the Chrome browser version?
Because ChromeDriver controls the browser using specific commands that depend on the browser's internal structure. Mismatched versions can cause failures or unexpected behavior.
Click to reveal answer
beginner
What is the purpose of System.setProperty in ChromeDriver setup?
System.setProperty tells Java where to find the ChromeDriver executable on your computer so Selenium can launch and control the Chrome browser.
Click to reveal answer
beginner
Show a simple Java code snippet to launch Chrome browser using Selenium WebDriver.
System.setProperty("webdriver.chrome.driver", "path/to/chromedriver");
WebDriver driver = new ChromeDriver();
driver.get("https://example.com");
Click to reveal answer
What does ChromeDriver do in Selenium testing?
✗ Incorrect
ChromeDriver controls the Chrome browser by receiving commands from Selenium WebDriver.
Which Java method sets the path to ChromeDriver executable?
✗ Incorrect
System.setProperty is used to specify the location of the ChromeDriver executable.
What happens if ChromeDriver version does not match Chrome browser version?
✗ Incorrect
Version mismatch can cause communication errors between ChromeDriver and the browser.
Which of these is a correct way to start ChromeDriver in Java?
✗ Incorrect
You must set the system property first, then create a ChromeDriver instance.
Where do you get the ChromeDriver executable?
✗ Incorrect
ChromeDriver must be downloaded from its official site matching your Chrome version.
Explain the steps to set up ChromeDriver for Selenium WebDriver in Java.
Think about what you need before running tests on Chrome.
You got /4 concepts.
Why is it important to keep ChromeDriver and Chrome browser versions compatible?
Consider how devices need matching software to work well together.
You got /4 concepts.