Header Ads

ad728
  • Breaking News

    Selenium Headless Bug in Chrome/Edge 129.x Version - Blank Window Appearing

    For Blank window appearing in headless mode. Use the below code. add the argument "--headless=old"



    from selenium import webdriver

    from selenium.webdriver.chrome.options import Options
    import time

    chrome_options = Options()
    chrome_options.add_argument(
    "--headless=old")

    url_to_open =
    "https://sdetqaportal.blogspot.com/"

    driver = webdriver.Chrome(options=chrome_options)
    driver.maximize_window()
    driver.get(url_to_open)
    print(driver.title)
    driver.quit()

    2 comments:

    1. Selenium Headless Bug in Chrome/Edge 129.x Version - Blank Window Appearing

      ReplyDelete
    2. Comment your thoughts on this. Thanks!

      ReplyDelete