Unable to use desired_capabilities

4,230 views
Skip to first unread message

MP

unread,
Jun 13, 2023, 4:56:09 AM6/13/23
to Selenium Users
Hey Folks, 

webdriver.Chrome has been throwing TypeError when desired_capabilities is passed to it as an argument with object ['goog:loggingPrefs'] = {"performance": "ALL"}. Message below:

TypeError: WebDriver.__init__() got an unexpected keyword argument 'desired_capabilities'

Assuming it is caused by the latest updates according to this post. Could someone please help with a viable solution? 

Eli Godoy

unread,
Jun 14, 2023, 12:37:41 PM6/14/23
to Selenium Users
desired_capabilities is deprecated, use the advices in update to selenium 4 post...https://www.selenium.dev/documentation/webdriver/getting_started/upgrade_to_selenium_4/
Reply all
Reply to author
Forward
0 new messages