ode-comment"># Run in headless mode (no browser UI)</span>
chrome_options.add_argument("--disable-gpu")
chrome_options.add_argument("--no-sandbox")

<span class="code-comment"># Initialize the WebDriver</span>
driver = webdriver.Chrome(
    service=Service(ChromeDriverManager().install()),
    options=chrome_options
)

<span class="code-comment"># Navigate to a webpage</span>
url = "https://example.com"
driver.get(url)

<span class="code-comment"># Wait for JavaScript to load content</span>
from selenium.we