Hello Everyone,
I have been running my selenium tests on the bitbucket pipeline and getting the following error.
<span>Connection refused (localhost:36763)</span>
<span>Error Message:</span>
<span>OpenQA.Selenium.WebDriverException : Cannot start the driver service on <a href="http://localhost:46053/" target="_blank" rel="nofollow noopener noreferrer">http://localhost:46053/</a></span>
<span>and my yaml file is: </span>
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