Hi Rahul, Welcome to the Atlassian Community!
If your Bamboo agent(s) has a GUI it should be possible to run non headless tests. Bamboo agents simply execute the commands you define in the build scripts. So the agent must support the commands you specify.
Here is someone who solved it by using the --no-sandbox option for Chrome: https://community.atlassian.com/t5/Bamboo-questions/How-to-call-chrome-by-bamboo-with-selenium-web-driver/qaq-p/1190182#M27186 Perhaps that will solve your issue.
When searching the web about this issue I found a lot of results, everything depends on your OS, programming language and other technologies you're using of course.
G’day Bamboo customers, The wait is almost over! We are in the final stages of work on the first release of Bamboo Data Center, our self-managed enterprise offering of Bamboo. This Data Center offe...
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