Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Selenium with Bitbucket pipeline is causing "Timed out waiting for driver server to start"


I was working on some simple automatic test cases using selenium in my Bit bucket pipeline Below is my yml 

image: maven:3.6.1

max-time: 10 # configure default 10 minute timeout

- step:
- maven
script: # Modify the commands below to build your repository.
- mvn -Dtest=ApplicationTests test

 when executing -mvn -Dtest==ApplicationTests test in my cmd, the test cases are executing absolutely fine but when I exectue the same command in pipeline I'm geitting the below exception

2020-04-24 15:55:11.690 ERROR 92 --- [ null to remote] org.openqa.selenium.os.OsProcess : org.apache.commons.exec.ExecuteException: Process exited with an error: 127 (Exit value: 127)org.openqa.selenium.WebDriverException: Timed out waiting for driver server to start.Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03'System info: host: '952e449d-6cd1-4feb-8f33-d76b1a81eb7c-47n4q', ip: '', 'Linux', os.arch: 'amd64', os.version: '4.19.95-flatcar', java.version: '11.0.4'Driver info: driver.version: ChromeDriver


From the exception, it can be understood that the exception is caused due to time out. Now the question is, is there a way to increase the timeout so that it waits for some time for the server to start? Below is my code:

class ApplicationTests {
private WebDriver driver;

void contextLoads() {
try {
//System.setProperty("", "C:\\Users\\Akhil\\Desktop\\Selenium\\chromedriver.exe");
driver = new ChromeDriver();

//Page synchronization
driver.manage().timeouts().implicitlyWait(100, TimeUnit.SECONDS);
driver.manage().timeouts().pageLoadTimeout(100, TimeUnit.SECONDS);
catch(Exception e){



Thanks in advance.


1 answer

Hi Akhil,

Did u get an answer to this or have you resolved this? Please let me know. I am facing the same issue related to driver timeout. I have posted my question in Atlassian community. Please check once. Below is the link to it:


Build failure part 2.png

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket

📣 Calling Bitbucket Data Center customers to participate in research

Hi everyone, Are you Bitbucket DC customer? If so, we'd love to talk to you! Our team wants to dive deep to understand your long-term plans regarding Bitbucket DC and Atlassian Cloud. Do you plan...

123 views 2 4
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you