Answer the question
In order to leave comments, you need to log in
Why error in python selenium?
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
browser = webdriver.Chrome(executable_path='E:/chromedriver.exe')
log_post = ''
pass_post = ''
browser.get('https://mail.rambler.ru/')
time.sleep(5)
mail_find_guard = browser.find_element_by_xpath('/html/body/div[1]/div/div/div[1]/article/form/section[1]/div/div/div/input')
mail_find_guard.send_keys(log_post)
mail = browser.find_element_by_xpath('/html/body/div[1]/div/div/div[1]/article/form/section[2]/div/div/div/input')
mail.send_keys(pass_post)
mail.send_keys(Keys.ENTER)
time.sleep(2)
Answer the question
In order to leave comments, you need to log in
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.common.by import By
import time
browser = webdriver.Chrome(executable_path='E:/chromedriver.exe')
log_post = ''
pass_post = ''
browser.get('https://mail.rambler.ru/')
time.sleep(5)
mail_find_guard = browser.find_element (By.XPATH, '/html/body/div[1]/div/div/div[1]/article/form/section[1]/div/div/div/input')
mail_find_guard.send_keys(log_post)
mail = browser.find_element (By.XPATH, '/html/body/div[1]/div/div/div[1]/article/form/section[2]/div/div/div/input')
mail.send_keys(pass_post)
mail.send_keys(Keys.ENTER)
time.sleep(2)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question