Complete the code to import the Selenium WebDriver module.
from selenium import [1]
The correct import to use Selenium WebDriver is webdriver.
Complete the code to create a Chrome WebDriver instance for running tests.
driver = [1].Chrome()You create a Chrome browser instance using webdriver.Chrome().
Fix the error in the code to run Chrome in headless mode in CI.
options = webdriver.ChromeOptions()
options.add_argument([1])
driver = webdriver.Chrome(options=options)The correct argument to run Chrome headless is '--headless'.
Fill both blanks to add arguments for running Chrome in CI with no sandbox and headless.
options = webdriver.ChromeOptions() options.add_argument([1]) options.add_argument([2]) driver = webdriver.Chrome(options=options)
In CI, Chrome often needs --no-sandbox and --headless arguments to run properly.
Fill all three blanks to create a dictionary comprehension filtering environment variables for CI setup.
ci_env = [1]: [2] for [3] in env_vars if [3].startswith('CI_')
This comprehension creates a dictionary of keys and values where keys start with 'CI_'.
