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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.