I have installed selenium through python using pip (I ran):
pip install selenium
I'm using Python 3.9.0 and the driver argument isn't being recognized.
My current code.
import selenium
from selenium import webdriver
filepath = r"D:\msedgedriver.exe"
webdriver.Edge(filepath)
options=driver.EdgeOptions()
In this code. there is no issue with the import command but driver
is not being recognised as valid syntax.
Any help?
You need to run the command below to install the MS Edge Selenium tools:
Then use the code below, it can work well on my side:
Please note to use the same version of Edge Webdriver as the Edge browser and change the paths in the code to your owns.