Code Screenshot1
在实验室使用ium时发现错误 我正试图在实验室中使用ium,但显示其错误属实。 During handling of the above exception, another exception occurred:AttributeError Traceback (most recent call last)
/usr/local/lib/python3.10/dist-packages/selenium/webdriver/common/driver_finder.py in get_path(service, options)
38 path = SeleniumManager().driver_location(options) if path is None else path
39 except Exception as err:
---> 40 msg = f"Unable to obtain driver for {options.capabilities[ browserName ]} using Selenium Manager."
41 raise NoSuchDriverException(msg) from err
42
AttributeError: str object has no attribute capabilities
I m using Selenium Webdriver and python to automatically schedule an appointment. Webdriver options: options = Options() options.binary_location = /opt/headless-chromium options.add_argument( --...