【发布时间】:2019-02-22 09:47:31
【问题描述】:
得到错误
selenium.common.exceptions.ElementNotInteractableException:消息:元素不可交互
(或)
selenium.common.exceptions.WebDriverException:消息:搜索查询代码行无法访问 chrome。
我相信搜索字段隐藏在网站中。帮助代码。
from selenium import webdriver
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.common.exceptions import TimeoutException
from selenium.webdriver.common.keys import Keys
#Step: Create new browsing session
options = Options()
options.add_argument("start-maximized")
browser = webdriver.Chrome("C:/Users/ashita.gadagotti/Downloads/chromedriver_win32/chromedriver.exe",chrome_options=options)
#Search Query
browser.get("https://equiniti-kyc.com")
search_input = browser.findElement(By.className("primary-navigation__search-input").isEnabled()
search_input.send_keys('ISO')
search_input.submit()
【问题讨论】:
-
对不起。我没有投反对票
标签: python python-3.x selenium selenium-webdriver selenium-chromedriver