Selenium Test Issue With Bamboo
Asked by Sateesh Goli:

Hi Team,

When i was trying to run Selenium Test through bamboo i have noticed following exception but i could able to run this from local VM.

```
build	02-Nov-2017 05:23:46	2017-11-02 05:23:46,574 DEBUG [main] c.c.p.u.PulsarWebDriverSession [PulsarWebDriverSession.java:35] ...getWebDriverSession()build	02-Nov-2017 05:23:46	2017-11-02 05:23:46,574 DEBUG [main] c.c.p.u.PulsarWebDriverSession [PulsarWebDriverSession.java:49] webDriver()build	02-Nov-2017 05:23:47	2017-11-02 05:23:47,279 INFO [main] i.g.b.w.BrowserManager [BrowserManager.java:563] Reading https://chromedriver.storage.googleapis.com/ to seek [chromedriver]build	02-Nov-2017 05:23:47	2017-11-02 05:23:47,612 INFO [main] i.g.b.w.BrowserManager [BrowserManager.java:498] Latest version of [chromedriver] is 2.33build	02-Nov-2017 05:23:47	2017-11-02 05:23:47,637 DEBUG [main] i.g.b.w.Downloader [Downloader.java:100] Using binary driver previously downloaded /root/.m2/repository/webdriver/chromedriver/linux64/2.33/chromedriverbuild	02-Nov-2017 05:23:47	2017-11-02 05:23:47,638 INFO [main] i.g.b.w.BrowserManager [BrowserManager.java:626] Exporting webdriver.chrome.driver as /root/.m2/repository/webdriver/chromedriver/linux64/2.33/chromedrivererror	02-Nov-2017 05:23:48	Starting ChromeDriver 2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4) on port 2635error	02-Nov-2017 05:23:48	Only local connections are allowed.error	02-Nov-2017 05:24:48	org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormallyerror	02-Nov-2017 05:24:48	  (Driver info: chromedriver=2.33.506092 (733a02544d189eeb751fe0d7ddca79a0ee28cce4),platform=Linux 3.13.0-121-generic x86_64) (WARNING: The server did not provide any stacktrace information)error	02-Nov-2017 05:24:48	Command duration or timeout: 60.39 secondserror	02-Nov-2017 05:24:48	Build info: version: '2.53.0', revision: '35ae25b1534ae328c771e0856c93e187490ca824', time: '2016-03-15 10:43:46'error	02-Nov-2017 05:24:48	System info: host: 'ip-172-31-19-123', ip: '172.31.19.123', os.name: 'Linux', os.arch: 'amd64', os.version: '3.13.0-121-generic', java.version: '1.8.0_141'error	02-Nov-2017 05:24:48	Driver info: org.openqa.selenium.chrome.ChromeDrivererror	02-Nov-2017 05:24:48		at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)error	02-Nov-2017 05:24:48		at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)error	02-Nov-2017 05:24:48		at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)error	02-Nov-2017 05:24:48		at java.lang.reflect.Constructor.newInstance(Constructor.java:423)error	02-Nov-2017 05:24:48		at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:206)error	02-Nov-2017 05:24:48		at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:158)error	02-Nov-2017 05:24:48		at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:678)error	02-Nov-2017 05:24:48		at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:249)error	02-Nov-2017 05:24:48		at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)error	02-Nov-2017 05:24:48		at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:144)error	02-Nov-2017 05:24:48		at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:170)error	02-Nov-2017 05:24:48		at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:138)error	02-Nov-2017 05:24:48		at com.cavirin.pulsar.utils.PulsarWebDriverSession.webDriver(PulsarWebDriverSession.java:77)error	02-Nov-2017 05:24:48		at com.cavirin.pulsar.tests.BaseTest.setUp(BaseTest.java:46)error	02-Nov-2017 05:24:48		at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)error	02-Nov-2017 05:24:48		at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)error	02-Nov-2017 05:24:48		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)error	02-Nov-2017 05:24:48		at java.lang.reflect.Method.invoke(Method.java:498)error	02-Nov-2017 05:24:48		
```

Can you please help me how to set up headless browser and how to run selenium tests through bamboo


Answers:
author: madhavpandey
body: Hey Sateesh, did you find any solution for this. I am kind of stuck too with the same error.