I am stuck in how to execute Selenium test by CI/CD pipeline. My selenium python-script is in a VM in Azure. I want to run it via CI/CD pipelines. This is what I did:
Downloaded the Artifacts from a build (to get my selenium python-script):
Then I moved the selenium python-script login.py
to : D:\a\1\a\LoginTestSuite\selenium\bin
Then I installed selenium-webdriver (npm install selenium-webdriver) and chromedriver (npm install chromedriver) in D:\a\1\a\LoginTestSuite\selenium\bin
But I am getting: from selenium import webdriver ModuleNotFoundError: No module named 'selenium'
What I am doing wrong? The installation or the way how I am doing this?
Any help is very appreciate it.
EDIT:
After installing webdriver_manager and running the script:
you can also use it through webdriver manager, check the chrome version by going to about in chrome and specify the version of compatible chromedriver as version argument
Install manager:
Use with Chrome:
uPDATE:
If using chromium chrome: