python selenium inputに入力できない

pythonのseleniumを使ってサイト内検索をしたいのですが、
input要素に入力しようとするとエラーが出てきて、
解決できなかったので質問させていただきました。
下記にコードを貼ります。

サイトは求人募集のサイトです。
エラー内容は
selenium.common.exceptions.ElementNotInteractableException: Message: element not interactable
です。

よろしくお願いいたします。

python

from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.common.keys import Keys import time chrome_driver_path = "//html/body/div[6]/header/div/div/div/div[1]/inputhome/minoru/programming/developper_tools/chromedriver"search_tag.send_keys("pyth driver = webdriver.Chrome(executable_path=chrome_driver_path)driver.get("https://www.linkedin.com/") MAIL_ADRESS = ""PASSWORD = "" sign_in_tag = driver.find_element(By.CLASS_NAME, "nav__button-secondary")sign_in_tag.click() user_name_form = driver.find_element(By.ID, "username")user_name_form.send_keys(MAIL_ADRESS) pass_form = driver.find_element(By.ID, "password")pass_form.send_keys(PASSWORD) submit = driver.find_element(By.CLASS_NAME, "btn__primary--large")submit.click() time.sleep(3) search_tag = driver.find_element("/html/body/div[6]/header/div/div/div/div[1]/input") search_tag.send_keys("python developer") #ここでエラーがでますsearch_tag.send_keys(Keys.ENTER)

コメントを投稿

0 コメント