python – selenium AttributeError: ‘WebDriver‘ object has no attribute ‘w3c‘?
selenium ==4.0 can run
but selenium == 4.6 not to run,and get error:AttributeError: ‘WebDriver‘ object has no attribute ‘w3c‘
www.selenium.dev/blog/2022/legacy-protocol-support/
tell me Selenium 4.3 will only support W3C compliant WebDriver syntax, how to use w3c?
i want to get log message
my code
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
from selenium.webdriver.chrome.options import Options
d = DesiredCapabilities.CHROME
d['loggingPrefs'] = { 'performance':'ALL' }
chrome_options = Options()
chrome_options.add_experimental_option('w3c', False)
driver = webdriver.Chrome(desired_capabilities=d, options=chrome_options)
Read more here: Source link