Open Vika-Denisenko opened 1 year ago
You managed to solve that?
For old selenium (< 4.10): dc = DesiredCapabilities.CHROME.copy() dc["goog:loggingPrefs"] = {"browser":"INFO"}
For "new" selenium (>=4.10), you need to place it using options.set_capability: options = webdriver.ChromeOptions() options.set_capability("goog:loggingPrefs", {browser: "INFO"})
I belive this is a duplicated https://github.com/wkeeling/selenium-wire/issues/697.
The problem seems to be here.
if seleniumwire_options.get('auto_config', True):
capabilities = kwargs.get('desired_capabilities')
if capabilities is None:
capabilities = DesiredCapabilities.FIREFOX.copy()
else:
capabilities = capabilities.copy()
capabilities.update(config)
kwargs['desired_capabilities'] = capabilities
I don't know why this is used, but it's the cause of the problem. When commenting it, the error is not reproduced, since the desired_capabilities
is not passed to selenium's webdriver's class.
It would seem that this commit is the one that removed the desired_capabilities
options https://github.com/SeleniumHQ/selenium/commit/9f5801c82fb3be3d5850707c46c3f8176e3ccd8e.
EDIT: Aclaration, this doesn't solve the problem, it just doesn't reproduce the error. For example, I'm able to add a proxxy when using local chromedriver but not a remote selenium server.
I belive this is a duplicated #697.
I created this topic first
Sure, I didn't meant it for you to close it, just to create the link relating the two of them. I think this has better documentation, I'd leave this open.
Hello! I have a problem after updating Selenium to v 4.10.0. I use the Remote Chrome driver in one class in my test set.
After updating selenium to v 4.10.0, this error began to appear:
If I don't pass capability the Remote Firefox driver is called, but I expected Remote Chrome driver