获取错误
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()
慕妹3242003
相关分类