Hello Everyone,
I have been running my selenium tests on the bitbucket pipeline and getting the following error.
Connection refused (localhost:36763)
Error Message:
OpenQA.Selenium.WebDriverException : Cannot start the driver service on http://localhost:46053/
and my yaml file is:
image: mcr.microsoft.com/dotnet/sdk:6.0
pipelines:
custom:
default:
- step:
name: Build and Test
caches:
- dotnetcore
services:
- selenium-standalone
script:
- echo "Starting Testing.."
- dotnet build Test.Automation.csproj --configuration Debug
- dotnet test --no-build Test.Automation.csproj --configuration Debug --logger "console;verbosity=detailed"
definitions:
services:
selenium-standalone:
image: selenium/standalone-chrome: latest
@Prince Dhiman Welcome to the Atlassian community
Not an expert on this but found a couple of posts with similar issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.