Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

selenium python pipeline

nada.zitouni
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 22, 2023

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

1 answer

1 vote
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 23, 2023

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

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events