Selenium Python - CI/CD Integration
Given this Python code snippet connecting to a Selenium Docker container, what will be the output if the container is not running?
from selenium import webdriver
from selenium.common.exceptions import WebDriverException
try:
driver = webdriver.Remote(
command_executor='http://localhost:4444/wd/hub',
options=webdriver.ChromeOptions()
)
print("Connected")
except WebDriverException:
print("Connection failed")