Answer the question
In order to leave comments, you need to log in
Python Selenium element is grayed out, error?
Good morning! I can't figure out why I'm getting an error. I need to write a program for automatic authorization on the website of an educational institution, but the error says that the filling forms are inactive. Why?
Error: selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
(Session info: chrome=85.0.4183.102)
from selenium import webdriver
import schedule
import time
bc=()
l = input('Введите логин: ')
p = input('Введите пароль: ')
print("Данные сохранены. Авторизация на сайт будет происходить в соответствии с расписанием!")
def job():
browser = webdriver.Chrome()
browser.get('https://www.pkgn.ru/?razdel=2&url=sveden/students')
login = browser.find_element_by_name("login")
login.send_keys (l)
password = browser.find_element_by_name('password')
password.send_keys (p)
bc = browser.find_element_by_class_name("but_avt")
bc.click()
schedule.every().monday.at("09:28").do(job)
schedule.every().tuesday.at("08:35").do(job)
schedule.every().wednesday.at("08:35").do(job)
schedule.every().thursday.at("10:25").do(job)
schedule.every().friday.at("11:25").do(job)
while True:
schedule.run_pending()
time.sleep(1)
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question