Python
- 3 ответа
- 0 вопросов
1
Вклад в тег
from selenium import webdriver
driver = webdriver.Chrome()
driver.get('#URL')
username = driver.find_element_by_css_selector("input#username")
username.click()
username.send_keys('#Login')
password = driver.find_element_by_css_selector("input#password")
password.click()
password.send_keys('11111')
submit = driver.find_element_by_css_selector("input#kc-login")
submit.click()
time.sleep(3)
activate_btn = driver.find_element_by_xpath(activate_xpath)