import time
from selenium import webdriver
from fake_useragent import UserAgent
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
ua = UserAgent()
url = "https://www.nealthy.com/alpha"
options = webdriver.ChromeOptions()
options.add_argument(f'user-agent={ua.chrome}')
options.add_argument('--headless')
web_driver = Service('C:\\webdriver\\chromedriver.exe') #ПУТЬ К ВЕБ ДРАЙВЕРУ
driver = webdriver.Chrome(service=web_driver, options=options)
driver.get(url=url)
driver.execute_script("window.scrollBy(0, 200);")
time.sleep(10)
driver.find_element(By.XPATH, '//*[@id="firstname"]').send_keys('Mikhail')
time.sleep(10)
driver.quit()
спасибо