Операционная система - Windows. Версия python - 3.9.5. Версия библиотек - selenium - 3.141.
Python:
from selenium import webdriver
import time
url = 'https://intoli.com/blog/not-possible-to-block-chrome-headless/chrome-headless-test.html'
options = webdriver.ChromeOptions()
options.add_argument("user-agent = Hello World")
driver = webdriver.Chrome(executable_path = 'F:\\Python\\Директория\\chromedriver.exe', options=options)
try:
driver.get(url = url)
time.sleep(100)
except Exception as ex:
print(ex)
finally:
driver.close()
driver.quit()