hello i'am trying to run pipeline which run selenium python tests:
the yaml :
pipelines:
default:
- step:
name: tests
image: python:3.7
script:
- python --version
- pip3 install selenium
- pip3 install webdriver_manager
- python3.7 Tests/Test1.py
there is some issue with webdriver execution does anyone have idea please
error :
selenium.common.exceptions.WebDriverException: Message: Service /root/.wdm/drivers/chromedriver/linux64/110.0.5481/chromedriver unexpectedly exited. Status code was: 127
Hello @nada.zitouni ,
Thank you for reaching out to Atlassian Community.
After doing a research about this particular error, I found the following StackOverflow thread where they mention that selenium might require some additional libraries to be installed in the container :
Could you please try installing the packages mentioned in that documentation as part of your script, and let us know how it goes? I would suggest testing locally with docker until you get the issue fixed and only then moving the changes to your repository, so this way you don't spend your build minutes.
I've also found an article that has step-by-step instructions on how to use selenium on Bitbucket Pipelines using the services feature. You're also welcome to take a look and check if this tutorial helps with your use case:
Thank you, @nada.zitouni !
Patrik S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.