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()
Selenium Headless Bug in Chrome/Edge 129.x Version - Blank Window Appearing
ReplyDeleteComment your thoughts on this. Thanks!
ReplyDelete