-1

Code screenshot1 Code screenshot2

Getting error when using selenium in colab

I am trying to use selenium in colab but they show attribute error

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'
Shawn
  • 4,064
  • 2
  • 11
  • 23
  • 1
    Check this answer - https://stackoverflow.com/a/76463081/7598774 – Shawn Aug 18 '23 at 11:19
  • 1
    Does this answer your question? [Unable to use Selenium Webdriver. Getting two exceptions](https://stackoverflow.com/questions/76461596/unable-to-use-selenium-webdriver-getting-two-exceptions) – colidyre Aug 18 '23 at 15:30

0 Answers0