I'm trying to use Selenium to test a web app, and my tests are running smoothly using webdriver-manager
. I already pip installed the webdriver_manager and selenium. I am using the chrome driver, so the first lines of my code are
from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
driver = webdriver.Chrome(ChromeDriverManager().install())
As I already said, the code runs and my tests are carried out. However, since I am using VS Code, the line webdriver_manager.chrome
is highlighted in yellow with the warning Import "webdriver_manager.chrome" could not be resolved Pylance (reportMissingErrors).
Does anyone know how to remove this warning or how to fix it? Thanks so much in advance.
Pylance Extension
? – Boxer