0
import time
from tkinter.tix import ButtonBox 
from selenium import webdriver
from selenium.webdriver.common.action_chains import ActionChains
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.support.wait import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.by import By

driver = webdriver.Chrome('/Users/ziub1n/Desktop/++/dropY/chromedriver')

url = "https://portal.librus.pl/rodzina"
driver.get(url)
driver.maximize_window()

click = driver.find_element_by_xpath('/html/body/nav/div/div[1]/div/div[2]/a[3]')
click.click()

time.sleep(2)

login = driver.find_element_by_class_name('zmdi-account')
login.click()

This is my problem this column doesn't work.

a = 'Login'
date_element = driver.find_element_by_id(a).send_keys('213123224')
1
  • 1
    Welcome to the community! It would be very helpful if you can also provide a copy of what the DOM looks like. Most of the time, it's not an issue of send_keys failing, but the element being interacted with isn't an input.
    – Lee Jensen
    Apr 4 at 23:27

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.