但是,当我使用find_element时,会引发以下错误:"By“未定义Pylance (reportUndefinedVariable)。我在selenium.dev上读过Selenium 4文档,但我不知道到底哪里出了问题。from selenium import webdriver
from selenium.webdriver.chrome.service import Service as ChromeServicefrom selenium
我一直收到一个错误如下:
chrome_driver_path = r"C:\chromedriver.exe"from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.uiimport W