This error is raised when you try to pass an unexpected keyword argument 'desired_capabilities' to the init() method.

The init() method is the constructor method of a class and it is used to initialize the object. It is possible that you are trying to instantiate a class and passing the 'desired_capabilities' argument to the constructor, but the class does not define this argument in its init() method.

To resolve this issue, you can either remove the 'desired_capabilities' argument from the instantiation or modify the class definition to accept this argument in its init() method.

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

原文地址: https://www.cveoy.top/t/topic/b7hd 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录