appium➕vs code:selenium.webdriver.common.options

img


报错如图所示,很闹心😿不知道哪里出了问题 网上也没搜到,不知从何下手



from selenium.webdriver.chrome.options import Options
from selenium import webdriver

option = Options()
option.add_experimental_option('excludeSwitches', ['enable-automation'])
option.add_argument('--disable-blink-features=AutomationControlled')
driver = webdriver.Chrome(options=option,executable_path='C:/img/chromedriver.exe')

url = 'http://credit.customs.gov.cn/'
driver.get(url=url)
driver.maximize_window()