0
Bitbucket Pipeline is showing the error message below, while running selenium script. How can I fix this error?
Error Message:
org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.
Build info: version: '3.12.0', revision: '7c6e0b3', time: '2018-05-08T14:04:26.12Z'
System info: host: 'ea7dc775-c9f2-4e1c-b434-2afad6661d2c28de', ip: '11.32.36.232', os.name: 'Linux', os.arch: 'amd64', os.version: '4.19.23-coreos-r1', java.version: '1.8.0_121'
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.service.DriverService.waitUntilAvailable(DriverService.java:192)
at org.openqa.selenium.remote.service.DriverService.start(DriverService.java:178)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:79)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:543)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:207)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:130)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:168)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:157)
YAML file
image: maven:3.3.9
pipelines:
default:
- step:
name : Automation Testing - Execution
caches:
- maven
script: # Modify the commands below to build your repository.
- mvn -B verify # -B batch mode makes Maven less verbose
artifacts: # defining the artifacts to be passed to each future step.
- Results/**
Your WebDriver is not able to start. Have you configured the WebDriver correctly? – Aulis Ronkainen – 2019-05-11T16:12:41.477
Script is running in Mac book in chrome headless mode but same is not running in bitbucket pipeline in linux machine. Can you please let me know how to configure chrome image in YAML file ? – poovaraj – 2019-05-14T14:03:58.813