I'm trying to setup Selenium to use with Python on a Mac BigSur, below are the steps I took for my current-fail config.
- Install Selenium on my current python environment using
pip install selenium
- Downloaded MS Edge WebDriver that match my current Edge browser
- Save the binary file on
/usr/local/bin
directory - Run
export PATH="$PATH:/usr/local/bin"
as suggested in the Selenium website under WebDrivers section - On my Jupyter notebook I have the following code:
from selenium.webdriver import Edge
driver = Edge(executable_path='/usr/local/bin/msedgedriver')
- When I run the cell I get the error:
SessionNotCreatedException Traceback (most recent call last)
<ipython-input-3-eec278095d29> in <module>
2 URL = 'https://coinmarketcap.com/watchlist/60321ee5b01cab343e1e37d6'
3
----> 4 driver = Edge(executable_path='/usr/local/bin/msedgedriver')
5
6 # options = webdriver.edge()
...
SessionNotCreatedException: Message: session not created: No matching capabilities found
- Frustrated by ignorance ask help at SO
Do you have any idea what I'm doing wrong?