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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,462,954
Community Members
 
Community Events
176
Community Groups

Unable to connect to chromedriver in Bitbucket Pipeline

I am trying to get Cucumber/Selenium working in Bitbucket Pipelines.  I have the chrome webdriver installed and available on the path, but when I execute cucumber I receive the error:

"unable to connect to chromedriver 127.0.0.1:9515 (Selenium::WebDriver::Error::WebDriverError)"

Ideas?

1 answer

0 votes
Peter Plewa Atlassian Team Aug 16, 2018

Hi @Feldhacker,

It is possible to run Selenium in Pipelines, could you share your bitbucket-pipelines.yml?

Issue is likely related to the docker image you are using and it's configuration, perhaps https://medium.com/@yiquanzhou/run-selenium-ui-tests-in-docker-container-78be98e1b52d would guide you to a solution?

Thanks,

Peter

Deleted user Jan 27, 2022

Hi Peter,

 

I appreciate this is some time ago but maybe you could help me?

 

I'm trying to get the similar issue here working.

 

It looks when my script in the pipeline tried to execute:

'driver = new ChromeDriver(GetChromeOptions());'

I get these two errors: 'Connection refused [::ffff:127.0.0.1]:33859 (localhost:33859)'

OpenQA.Selenium.WebDriverException : Cannot start the driver service on http://localhost:33859/

 

Any advice if you see this would be appreciated :)

 

 

My .yml is:

image: mcr.microsoft.com/dotnet/sdk:5.0
pipelines:
default:
- step:
services:
- selenium-standalone
script: # Modify the commands below to build your repository.
- export PROJECT_NAME=Swoop-Acceptance
- export TEST_NAME=Swoop-Acceptance
- dotnet restore
- dotnet build $PROJECT_NAME
- dotnet test $TEST_NAME

definitions:
services:
selenium-standalone:
image: selenium/standalone-chrome:latest
port: 4444

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events